0

I have implemented Azure Active Directory authentication in my asp.net web app.

startup.auth.cs

public void ConfigureAuth(IAppBuilder app)

    {

        app.UseCookieAuthentication(new CookieAuthenticationOptions());

        app.UseOpenIdConnectAuthentication(

            new OpenIdConnectAuthenticationOptions

            {

                ClientId = clientId,

                Authority = Authority,

                PostLogoutRedirectUri = redirectUri,

                RedirectUri = redirectUri,




                Notifications = new OpenIdConnectAuthenticationNotifications()

                {

                    //

                    // If there is a code in the OpenID Connect response, redeem it for an access token and refresh token, and store those away.

                    //

                    AuthorizationCodeReceived = OnAuthorizationCodeReceived,

                    AuthenticationFailed = OnAuthenticationFailed

                }

            });
}

when i hit application url , its going to AD authentication, when i enter my credentials after completing two factor authentication it keeps trying to connect and finally says "we couldnt signin you, please try again later". please help

Authentication issue

its single page application created in asp.net mvc with type script.

please help me to resolve this issue. thanks!!!

5
  • Have you verified with different browsers? and please check if any firewall/VPN is enabled. Refer the process document and GitHub Sample Commented May 27, 2020 at 19:16
  • @Raghavendra-MSFTIdentity. thanks for your reply. i tried in different browser as well incognito mode as well... there is no firewall enabled. i have followed the same link.. i am not sure if i am missing any other configurations Commented May 28, 2020 at 8:31
  • Did you tried GitHub sample provided in the link updating your clientId/Applicationid, redirectUrl. and tried to login with the credentials? to find out whether the issue with the application or with the credentials Commented May 28, 2020 at 21:11
  • Hi @PMC Karur are you still looking for any help on this? Commented Sep 8, 2020 at 9:53
  • @Raghavendra-MSFTIdentity : yeah... i could resolve it by following the Github sample. thanks!! Commented Sep 25, 2020 at 12:13

1 Answer 1

0

(Moving from Comments to answer)

The above issue is resolved by following in the Document and GitHub Sample.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.