Skip to content

Commit

Permalink
Remove sample
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Apr 16, 2024
1 parent f7030d0 commit 0bdf2e5
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,27 +341,6 @@ private async Task<LoggedOutViewModel> BuildLoggedOutViewModelAsync(string logou
LogoutId = logoutId
};

if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
if (idp != null && idp != Duende.IdentityServer.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
{
if (vm.LogoutId == null)
{
// if there's no current logout context, we need to create one
// this captures necessary info from the current logged in user
// before we signout and redirect away to the external IdP for signout
vm.LogoutId = await _interaction.CreateLogoutContextAsync();
}

vm.ExternalAuthenticationScheme = idp;
}
}
}

return vm;
}
}
Expand Down

0 comments on commit 0bdf2e5

Please sign in to comment.