@@ -2,4 +2,10 @@
|
||||
'@backstage/plugin-user-settings': minor
|
||||
---
|
||||
|
||||
**BREAKING** Fixed settings page showing providers as logged out when the user is using more than one provider, and displayed some additional login information.
|
||||
**BREAKING**: The `apiRef` passed to `ProviderSettingsItem` now needs to
|
||||
implement `ProfileInfoApi & SessionApi`, rather than just the latter. This is
|
||||
unlikely to have an effect on most users though, since the builtin auth
|
||||
providers generally implement both.
|
||||
|
||||
Fixed settings page showing providers as logged out when the user is using more
|
||||
than one provider, and displayed some additional login information.
|
||||
|
||||
@@ -60,11 +60,13 @@ export const ProviderSettingsItem = (props: {
|
||||
api
|
||||
.getProfile({ optional: true })
|
||||
.then((profileResponse: ProfileInfo | undefined) => {
|
||||
if (sessionState === SessionState.SignedIn) {
|
||||
setSignedIn(true);
|
||||
}
|
||||
if (profileResponse) {
|
||||
setProfile(profileResponse);
|
||||
if (!didCancel) {
|
||||
if (sessionState === SessionState.SignedIn) {
|
||||
setSignedIn(true);
|
||||
}
|
||||
if (profileResponse) {
|
||||
setProfile(profileResponse);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user