kit: github.com/go-kit/kit/auth/basic Index | Files

package basic

import "github.com/go-kit/kit/auth/basic"

Index

Package Files

middleware.go

func AuthMiddleware Uses

func AuthMiddleware(requiredUser, requiredPassword, realm string) endpoint.Middleware

AuthMiddleware returns a Basic Authentication middleware for a particular user and password.

type AuthError Uses

type AuthError struct {
    Realm string
}

AuthError represents an authorization error.

func (AuthError) Error Uses

func (AuthError) Error() string

Error is an implementation of the Error interface.

func (AuthError) Headers Uses

func (e AuthError) Headers() http.Header

Headers is an implementation of the Headerer interface in go-kit/http.

func (AuthError) StatusCode Uses

func (AuthError) StatusCode() int

StatusCode is an implementation of the StatusCoder interface in go-kit/http.

Package basic imports 10 packages (graph). Updated 2017-09-21. Refresh now. Tools for package owners.