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

Co-authored-by: Raphael.Hehl <Raphael.Hehl@deutschebahn.com>
This commit is contained in:
Raphael Hehl 2024-12-12 11:40:52 +01:00 committed by GitHub
parent a08c6f6b3e
commit 12f4849061
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
});