View definition

func BasicAuthForRealm

Defined in github.com/gin-gonic/gin/auth.go

Description

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 http://tools.ietf.org/html/rfc2617#section-1.2)

BasicAuthForRealm is referenced in 2 repositories

github.com/gin-gonic/gin github.com/thbkrkr/go-apish