Merge pull request #23077 from afscrome/fixmsauthwithnoprofile
Fix Microsoft Auth Provider when Profile not requested
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-auth-node': patch
|
||||
---
|
||||
|
||||
Fix error when Microsoft tokens (or any other using the `defaultProfileTransform`) are requested without the profile scope.
|
||||
@@ -57,7 +57,7 @@ export class PassportOAuthAuthenticatorHelper {
|
||||
OAuthAuthenticatorResult<PassportProfile>
|
||||
> = async input => ({
|
||||
profile: PassportHelpers.transformProfile(
|
||||
input.fullProfile,
|
||||
input.fullProfile ?? {},
|
||||
input.session.idToken,
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user