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