Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestUser ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(cfg *AuthConfig, authen Authenticator, authz Authorizer) *Auth
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func (*AuthMiddleware) Authenticate ¶
func (mw *AuthMiddleware) Authenticate(w http.ResponseWriter, r *http.Request) (*http.Request, error)
func (*AuthMiddleware) Authorize ¶
func (mw *AuthMiddleware) Authorize(w http.ResponseWriter, r *http.Request) error
func (*AuthMiddleware) ServeHTTP ¶
func (mw *AuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Authenticator ¶
Click to show internal directories.
Click to hide internal directories.