Пример #1
0
 public static void UseHmac(this IAppBuilder app, HmacMiddlewareOptions options)
 {
     app.Use <HmacMiddleware>(
         options.SecretRepository,
         options.Algorithm,
         options.ClockSkew,
         options.Time);
 }
Пример #2
0
 public HmacMiddleware(OwinMiddleware next, HmacMiddlewareOptions options)
     : base(next)
 {
     this.options = options;
 }