public static IAppBuilder UseBasicAuthentication(this IAppBuilder app, BasicAuthenticationOptions options) { return(app.Use <BasicAuthenticationMiddleware>(options)); }
public static IAppBuilder UseBasicAuthentication(this IAppBuilder app, string realm, Func <string, string, bool> validator) { var options = new BasicAuthenticationOptions(realm, validator); return(app.UseBasicAuthentication(options)); }