Skip to content

Commit

Permalink
CB-4389. Fix logout redirect and npe for logout parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisSinelnikov committed Jan 23, 2024
1 parent 0bdb8f3 commit b43f639
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public WebLogoutInfo authLogout(
var cbApp = CBApplication.getInstance();
for (WebAuthInfo removedInfo : removedInfos) {
if (removedInfo.getAuthProviderDescriptor()
.getInstance() instanceof SMSignOutLinkProvider federatedProvider
.getInstance() instanceof SMSignOutLinkProvider provider
&& removedInfo.getAuthSession() != null
) {
var providerConfig =
Expand All @@ -160,10 +160,10 @@ public WebLogoutInfo authLogout(
}
String logoutUrl;
if (removedInfo.getAuthSession() instanceof SMSessionExternal externalSession) {
logoutUrl = federatedProvider.getUserSignOutLink(providerConfig,
logoutUrl = provider.getUserSignOutLink(providerConfig,
externalSession.getAuthParameters());
} else {
logoutUrl = federatedProvider.getUserSignOutLink(providerConfig,
logoutUrl = provider.getUserSignOutLink(providerConfig,
Map.of());
}
if (CommonUtils.isNotEmpty(logoutUrl)) {
Expand Down

0 comments on commit b43f639

Please sign in to comment.