public static IAppBuilder UseScopeAuthentication(this IAppBuilder app, IScopeAuthorizationManager authManager) { var options = new ScopeAuthorizationMiddlewareOptions { Manager = authManager }; app.Use(typeof(ScopeAuthorizationManagerMiddleware), options); return app; }
public static IAppBuilder UseScopeAuthentication(this IAppBuilder app, ScopeAuthorizationMiddlewareOptions options) { app.Use(typeof(ScopeAuthorizationMiddlewareOptions), options); return app; }
public ScopeAuthorizationManagerMiddleware(Func<IDictionary<string, object>, Task> next, ScopeAuthorizationMiddlewareOptions options) { _options = options; _next = next; }