diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-12 16:09:02 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-10-24 14:48:24 +0200 |
commit | 3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (patch) | |
tree | e7f1d12ef5dae1e1142c3a8d0b681c1dbbb0de10 /server/lib/auth | |
parent | 38a3ccc7f8ad0ea94362b58c732af7c387ab46be (diff) | |
download | PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.gz PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.zst PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.zip |
Put private videos under a specific subdirectory
Diffstat (limited to 'server/lib/auth')
-rw-r--r-- | server/lib/auth/oauth.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/lib/auth/oauth.ts b/server/lib/auth/oauth.ts index 35b05ec5a..bc0d4301f 100644 --- a/server/lib/auth/oauth.ts +++ b/server/lib/auth/oauth.ts | |||
@@ -95,14 +95,9 @@ async function handleOAuthToken (req: express.Request, options: { refreshTokenAu | |||
95 | 95 | ||
96 | function handleOAuthAuthenticate ( | 96 | function handleOAuthAuthenticate ( |
97 | req: express.Request, | 97 | req: express.Request, |
98 | res: express.Response, | 98 | res: express.Response |
99 | authenticateInQuery = false | ||
100 | ) { | 99 | ) { |
101 | const options = authenticateInQuery | 100 | return oAuthServer.authenticate(new Request(req), new Response(res)) |
102 | ? { allowBearerTokensInQueryString: true } | ||
103 | : {} | ||
104 | |||
105 | return oAuthServer.authenticate(new Request(req), new Response(res), options) | ||
106 | } | 101 | } |
107 | 102 | ||
108 | export { | 103 | export { |