I am using OpenID Connect to connect to Azure ID, I can successfully authenticate in Azure and get the request coming back to the redirect uri specified in OpenID Azure AD Configuration.
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
AuthenticationType = " TEST",
Caption = "Test Azure AD",
SignInAsAuthenticationType = signInAsType,
ClientId = "<client ID>",
Authority = "https://sts.windows.net/<tenantId>",
ResponseType = OpenIdConnectResponseTypes.CodeIdToken,
RedirectUri = "https://localhost:44392/External/Login", This is another webapi project, not identityserver host.
AuthenticationMode = AuthenticationMode.Passive,
});
After succesful authentication it is redirecting back to https://localhost:44392/External/Login with Code, IdToken.
Questions :
Does it not stop at
AuthenticateExternalAsyncmethod on redirection unlikegoogle-signin?Do i have to decode
IdTokenJWT to get user claims?- In the redirection method, how do i generate
Access Tokenfrom IdSrv3 to authorize other webapis ? Can a user have both Local Login and Multiple External logins ( Azure AD, Google etc ). In this case how does SSO works with
IDsrv3?Is there any
IdSrv3sample with External logins implemented ? Preferably Azure AD ?