コード例 #1
0
        public static IAppBuilder UseBasicAuth(this IAppBuilder app, string realm,
                                               BasicAuthMiddleware.CredentialValidationFunc credentialValidationFunc)
        {
            var options = new BasicAuthOptions(realm, credentialValidationFunc);

            return(app.UseBasicAuth(options));
        }
コード例 #2
0
 public static IAppBuilder UseBasicAuth(this IAppBuilder app, BasicAuthOptions options)
 {
     return(app.Use <BasicAuthMiddleware>(options));
 }