This commit is contained in:
Kagami Sascha Rosylight
2023-04-02 21:59:38 +02:00
parent 82c9820ac8
commit 71f62b9d89
4 changed files with 159 additions and 2 deletions

View File

@@ -433,7 +433,7 @@ export class OAuth2ProviderService {
fastify.get<{ Querystring: OAuthRequestQuery }>('/oauth/authorize', async (request, reply) => {
console.log('HIT /oauth/authorize', request.query);
const oauth2 = (request.raw as any).oauth2 as (OAuth2 | undefined);
console.log(oauth2);
console.log(oauth2, request.raw.session);
if (request.query.response_type !== 'code') {
throw new Error('`response_type` parameter must be set as "code"');