View definition

func BasicAuthForRealm

Defined in


BasicAuthForRealm returns a Basic HTTP Authorization middleware. It takes as arguments a map[string]string where the key is the user name and the value is the password, as well as the name of the Realm. If the realm is empty, "Authorization Required" will be used by default. (see

BasicAuthForRealm is referenced in 2 repositories