IdentityServer / IdentityServer3.AccessTokenValidation

OWIN Middleware to validate access tokens from IdentityServer3
Apache License 2.0
90 stars 149 forks source link

OWIN Implicit flow support #87

Closed aaabdul closed 8 years ago

aaabdul commented 8 years ago

Is there any package available readily for Implicit or Authorization code flow for MVC applications ?

Right now I am having to do the following.

app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions { ClientId = ConfigurationManager.AppSettings["CLIENT_ID"], ClientSecret = ConfigurationManager.AppSettings["CLIENT_SECRET"], Authority = ConfigurationManager.AppSettings["AUTHORITY"], RedirectUri = ConfigurationManager.AppSettings["REDIRECT_URI"],

            // This will give us ID verification as well as Resource verification
            ResponseType = "id_token token",

            // Open ID required for ID verification and default is the application scope.
            Scope = "openid default",

            // The tokens are stored in the cookies within the user session
            SignInAsAuthenticationType = "Cookies",
            UseTokenLifetime = false,

            // After logout, identity server will redirect to the application url specified here
            PostLogoutRedirectUri = ConfigurationManager.AppSettings["REDIRECT_URI"],
            Notifications = notifications
        });
brockallen commented 8 years ago

Is there any package available readily for Implicit or Authorization code flow for MVC applications ?

Yes, the Katana OpenID Connect authentication middleware.

aaabdul commented 8 years ago

thanks.