From 12f4849061e03fbab6f3db26f77a0e180851afe4 Mon Sep 17 00:00:00 2001 From: Raphael Hehl <7577984+RaHehl@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:40:52 +0100 Subject: [PATCH] feat(backend): update Microsoft strategy to handle multiple scopes (#4604) Co-authored-by: Raphael.Hehl --- .../src/auth/strategies/microsoft.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-backend/src/auth/strategies/microsoft.strategy.ts b/packages/hoppscotch-backend/src/auth/strategies/microsoft.strategy.ts index 906385f5..cffa6808 100644 --- a/packages/hoppscotch-backend/src/auth/strategies/microsoft.strategy.ts +++ b/packages/hoppscotch-backend/src/auth/strategies/microsoft.strategy.ts @@ -18,7 +18,7 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy) { clientID: configService.get('INFRA.MICROSOFT_CLIENT_ID'), clientSecret: configService.get('INFRA.MICROSOFT_CLIENT_SECRET'), callbackURL: configService.get('INFRA.MICROSOFT_CALLBACK_URL'), - scope: [configService.get('INFRA.MICROSOFT_SCOPE')], + scope: configService.get('INFRA.MICROSOFT_SCOPE').split(','), tenant: configService.get('INFRA.MICROSOFT_TENANT'), store: true, });