This project has moved and is read-only. For the latest updates, please go here.

HttpContext.Current.User is null

Aug 25, 2014 at 1:35 PM
Edited Aug 26, 2014 at 8:38 AM

I've configured my site like in that sample (but i use mvc 3 instead of 5).

And i have problem with authentication. In same cases after sign in on azure site i have empty HttpContext.Current.User in Application_PostAuthenticateRequest event handler in my Global.asax file. But in other cases HttpContext.Current.User contains information.

May be this is bug? I can't find problem on my side.
public void ConfigureAuth(IAppBuilder app)

            app.UseCookieAuthentication(new CookieAuthenticationOptions());

                new OpenIdConnectAuthenticationOptions
                    ClientId = clientId,
                    Authority = authority,
                    PostLogoutRedirectUri = postLogoutRedirectUri
Is that config right?

Aug 26, 2014 at 12:07 PM
Marked as answer by savstavr on 8/26/2014 at 4:07 AM