Hello, I've been able to get IdentityServer4 to meet all of my needs so far. I've been looking for one specific set of functionality, which it looks like is supported based upon the following code, which is say that I can make logins automatically bounce to the "ExternalLogin" action if the IdP is known:
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
`if (context?.IdP != null)
{
// if IdP is passed, then bypass showing the login screen
return ExternalLogin(context.IdP, returnUrl);
}`
I currently have my external logins working for OpenID Connect over Azure AD, but I'm not quite sure of how to inject the IdP into the request from the client which consumes IdentityServer4 (I assume this is normally automatic). Is there a sample showing how to do this?
you can set the desired idp name on the acr_values parameter.
http://docs.identityserver.io/en/release/endpoints/authorize.html
So close! Thanks a ton @leastprivilege
above solution link does not exists. Pleas help.
hey @zoeysaurusrex ,
I know it's been years since you worked on this ;)
But did you solve it by putting your code in CustomAuthorizeInteractionResponseGenerator and checking IDP in:
public async override Task<InteractionResponse> ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse consent = null)
?
I've been trying to figure out how to skip login page and take users directly to IDP.
sample scenario is:
AuthorizationContext in custom AuthorizeInteractionResponseGeneratorThis thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
above solution link does not exists. Pleas help.