I have created a web app in azure and i am using Azure AD authentication (OpenID-Connect) to authenticate my web app. but i couldn't authenticate web app in few machines.
In some machines it(AAD authentication) working in google chrome, not in IE,Edge, Firefox. few times its worked in all the browsers.
I have failed in below steps
- Removed all the cookies and claims
- Clear the session and tested in private mode
In Startup.cs
public void ConfigureAuth(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions());
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
ClientId = Config.ClientId,
ClientSecret = Config.ClientSecret,
Authority = Config.Authority,
PostLogoutRedirectUri = Config.PostLogoutRedirectUri,
RedirectUri = Config.PostLogoutRedirectUri,
Notifications = new OpenIdConnectAuthenticationNotifications()
{
}
});
}
When i tried to login with Azure AAD. i received error message like 'We couldn't sign you in. Please try again.'
info:
No error Log in browser console
Enabled the azure authentication/authorization
authentication/authorization
feature , just disable it . – Nan Yu