public static IApplicationBuilder UseJwtAuthorization(
            this IApplicationBuilder builder, Action <JwtMiddlewareOptions> configureOptions)
        {
            var options = new JwtMiddlewareOptions();

            configureOptions(options);
            return(builder.UseMiddleware <JwtMiddleware>(options));
        }
Beispiel #2
0
 public JwtMiddleware(RequestDelegate next, JwtMiddlewareOptions options)
 {
     _next    = next;
     _options = options;
 }