Skip to content

Commit

Permalink
Handle unknown idp at login (IdentityServer#3276)
Browse files Browse the repository at this point in the history
Update AccountController.cs to handle unknown idp at login
  • Loading branch information
thegrahamking authored and brockallen committed May 20, 2019
1 parent 8a79939 commit b0c8968
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public IActionResult AccessDenied()
private async Task<LoginViewModel> BuildLoginViewModelAsync(string returnUrl)
{
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null)
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;

Expand Down Expand Up @@ -361,4 +361,4 @@ private async Task<LoggedOutViewModel> BuildLoggedOutViewModelAsync(string logou
return vm;
}
}
}
}

0 comments on commit b0c8968

Please sign in to comment.