Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
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.tsindex 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,});