public static IAppBuilder UseIdentitiyServerReferenceToken(this IAppBuilder app, ReferenceTokenValidationOptions options)
        {
            app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
            {
                AccessTokenProvider = new ReferenceTokenProvider(options.Authority, options.AuthenticationType)
            });

            return(app);
        }
예제 #2
0
        public static IAppBuilder UseIdentitiyServerReferenceTokens(this IAppBuilder app, ReferenceTokenValidationOptions options)
        {
            app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
            {
                AccessTokenProvider = new IdSrvReferenceTokenProvider(options.TokenValidationEndpoint)
            });

            return(app);
        }