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