Ejemplo n.º 1
0
 public static IAppBuilder UseBasicAuthentication(this IAppBuilder appBuilder, BasicAuthenticationOptions basicAuthenticationOptions)
 {
     return(appBuilder.Use <BasicAuthenticationMiddleware>(basicAuthenticationOptions));
 }
Ejemplo n.º 2
0
        public static IAppBuilder UseBasicAuthentication(this IAppBuilder appBuilder, string realm, BasicAuthenticationMiddleware.CredentialValidationFunction credentialValidationFunction)
        {
            var options = new BasicAuthenticationOptions(realm, credentialValidationFunction);

            return(appBuilder.UseBasicAuthentication(options));
        }