Пример #1
0
 public static IApplicationBuilder UseWebBoardAuthorize(this IApplicationBuilder builder, TokenAuthOptions token)
 {
     return(builder.UseMiddleware <WebBoardAuthorize>(token));
 }
Пример #2
0
 public WebBoardAuthorize(RequestDelegate next, TokenAuthOptions token)
 {
     _next = next;
     WebBoardAuth.Authorization.WebBoardAuthorize.initialSecret(token.Audience, token.Secret_key);
 }