Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Authenticated Event After OpenIDConnect Login

$
0
0

I'm using Cookies and OpenIDConnect Authentication with an MVC app, and I'd like to add some claims to the user once they are logged in, but I'm not sure where to put the code. Is there any event that fires after the user has been successfully authenticated?

public void ConfigureAuth(IAppBuilder app)
{
    app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);

    app.UseCookieAuthentication(new CookieAuthenticationOptions { });

    app.UseOpenIdConnectAuthentication(
        new OpenIdConnectAuthenticationOptions
        {
            Client_Id = "d71c88d1-f3d3-47e9-8313-06bc9af9a991",
            Authority = "https://login.windows.net/azurefridays.onmicrosoft.com/"
         }
}


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>