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