public static IAppBuilder RequireScopes(this IAppBuilder app, params string[] scopes) { var options = new ScopeValidationOptions { Scopes = scopes, AllowAnonymousAccess = false, ScopeClaimType = "scope" }; app.RequireScopes(options); return app; }
public ScopeValidationMiddleware(Func <IDictionary <string, object>, Task> next, ScopeValidationOptions options) { _next = next; _options = options; }
public static IAppBuilder RequireScopes(this IAppBuilder app, ScopeValidationOptions options) { app.Use(typeof(ScopeValidationMiddleware), options); return app; }
public ScopeValidationMiddleware(Func<IDictionary<string, object>, Task> next, ScopeValidationOptions options) { _next = next; _options = options; }