Hi,
We had a hard time using Azure AD for authentication with ASP.Net Zero (ASP.NET Zero Core & jQuery). Our understanding is to use OpenID Connect for authentication. It took us to the Microsoft login page and we can see the reply URL ('/signin-oidc') with a 'Identity.External' cookie. But it redirected us to the application login page. After stepping through the 'ExternalLoginCallback' action method, we realized that the 'GetExternalLoginInfoAsync' returned null.
This is the only change we made to the appsettings.json file.
"OpenId": {
"IsEnabled": "true",
"Authority": "https://login.microsoftonline.com/{tenant_id}/v2.0",
"ClientId": "{Client_id}",
"ClientSecret": ""
}
Are we missing some configurations for OpendId to work? is there any way for us to retrieve error messages from 'GetExternalLoginInfoAsync'?
Thank you.