Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAuth = fmt.Errorf("no authorization header found")
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator( tokenDecoder *Decoder, tokenURL string, ) *Authenticator
func (*Authenticator) Authenticate ¶
func (c *Authenticator) Authenticate(rw http.ResponseWriter, r *http.Request)
func (*Authenticator) Authorization ¶
func (c *Authenticator) Authorization(r *http.Request) (Token, error)
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
Click to show internal directories.
Click to hide internal directories.