Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

feat(backend): update Microsoft strategy to handle multiple scopes (#4604)

Raphael Hehl12f4849061e0
diff --git a/packages/hoppscotch-backend/src/auth/strategies/microsoft.strategy.ts b/packages/hoppscotch-backend/src/auth/strategies/microsoft.strategy.ts
index 906385f5f..cffa68083 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,
});