diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-26 09:25:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-26 09:25:10 +0200 |
commit | 89b9eab5a72fd805325a98ae613c3f0f00ab0250 (patch) | |
tree | 746b2f2be928ee0c4bec5acaae05c20575a4dd70 | |
parent | 97583d00235d5e8f29d9c49ca13096521e394aa4 (diff) | |
download | PeerTube-89b9eab5a72fd805325a98ae613c3f0f00ab0250.tar.gz PeerTube-89b9eab5a72fd805325a98ae613c3f0f00ab0250.tar.zst PeerTube-89b9eab5a72fd805325a98ae613c3f0f00ab0250.zip |
Add more logs to debug oauth-client error
-rw-r--r-- | server/controllers/api/oauth-clients.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/controllers/api/oauth-clients.ts b/server/controllers/api/oauth-clients.ts index b619b78a3..1899dbb02 100644 --- a/server/controllers/api/oauth-clients.ts +++ b/server/controllers/api/oauth-clients.ts | |||
@@ -26,7 +26,11 @@ async function getLocalClient (req: express.Request, res: express.Response, next | |||
26 | 26 | ||
27 | // Don't make this check if this is a test instance | 27 | // Don't make this check if this is a test instance |
28 | if (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) { | 28 | if (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) { |
29 | logger.info('Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe) | 29 | logger.info( |
30 | 'Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe, | ||
31 | { webserverConfig: CONFIG.WEBSERVER } | ||
32 | ) | ||
33 | |||
30 | return res.fail({ | 34 | return res.fail({ |
31 | status: HttpStatusCode.FORBIDDEN_403, | 35 | status: HttpStatusCode.FORBIDDEN_403, |
32 | message: `Getting client tokens for host ${req.get('host')} is forbidden` | 36 | message: `Getting client tokens for host ${req.get('host')} is forbidden` |