diff --git a/src/IdentityServer/samples/Server/Quickstart/Account/AccountController.cs b/src/IdentityServer/samples/Server/Quickstart/Account/AccountController.cs index 7713ef0..202853f 100644 --- a/src/IdentityServer/samples/Server/Quickstart/Account/AccountController.cs +++ b/src/IdentityServer/samples/Server/Quickstart/Account/AccountController.cs @@ -341,27 +341,6 @@ private async Task 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; } }