auth-backend: fix for refresh token being lost during microsoft login
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-auth-backend': patch
|
||||
---
|
||||
|
||||
Fix for refresh token being lost during Microsoft login.
|
||||
@@ -54,12 +54,12 @@ export class GithubAuthProvider implements OAuthHandlers {
|
||||
},
|
||||
(
|
||||
accessToken: any,
|
||||
refreshToken: any,
|
||||
_refreshToken: any,
|
||||
params: any,
|
||||
fullProfile: any,
|
||||
done: PassportDoneCallback<OAuthResult>,
|
||||
) => {
|
||||
done(undefined, { fullProfile, params, accessToken, refreshToken });
|
||||
done(undefined, { fullProfile, params, accessToken });
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -51,12 +51,12 @@ export class GitlabAuthProvider implements OAuthHandlers {
|
||||
},
|
||||
(
|
||||
accessToken: any,
|
||||
refreshToken: any,
|
||||
_refreshToken: any,
|
||||
params: any,
|
||||
fullProfile: any,
|
||||
done: PassportDoneCallback<OAuthResult>,
|
||||
) => {
|
||||
done(undefined, { fullProfile, params, accessToken, refreshToken });
|
||||
done(undefined, { fullProfile, params, accessToken });
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ export class MicrosoftAuthProvider implements OAuthHandlers {
|
||||
fullProfile: passport.Profile,
|
||||
done: PassportDoneCallback<OAuthResult, PrivateInfo>,
|
||||
) => {
|
||||
done(undefined, { fullProfile, accessToken, refreshToken, params });
|
||||
done(undefined, { fullProfile, accessToken, params }, { refreshToken });
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user