Unable to Authenticate - Azure web app with Azure Active Directory (OpenIdConnect) the users are redirected to we couldn't sign you in. please try again pop-up

Gatej Alexandru 0 Reputation points
2023-05-12T11:25:59.84+00:00

Hello,

I have .net 4.8 web forms application(vb.net) on premises. From time to time the users receive the message: "We couldn't sign you in. Please try again"

img2

After clicking Use another account and add the same account for which the error was thrown everything is ok(the user is authenticated and can access the application).

This is the configuration : img

Looking forward for your help on this.

Thanks

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,219 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 19,516 Reputation points
    2023-05-16T10:27:35.5566667+00:00

    @Gatej Alexandru Thanks for reaching here! Could you confirm which browser you are using, See this Similar suggestion here-

    Updating your application’s Microsoft.Owin.Host.SystemWeb package be at least version and Modify your code to use one of the new cookie manager classes. for example something like the following:

    app.UseCookieAuthentication(new CookieAuthenticationOptions 
    { 
        AuthenticationType = "Cookies", 
        CookieManager = new Microsoft.Owin.Host.SystemWeb.SystemWebChunkingCookieManager() 
    });
    
    
    0 comments No comments