Versions in this module Expand all Collapse all v0 v0.2.0 Jun 20, 2026 Changes in this version type Challenge + func (c Challenge) Respond(w http.ResponseWriter) + func (c Challenge) SetHeader(w http.ResponseWriter) v0.1.0 Jun 20, 2026 Changes in this version + const ErrorInsufficientScope + const ErrorInvalidRequest + const ErrorInvalidToken + const SpecVersion + var ErrMalformedToken = errors.New("bearer: malformed bearer credentials") + var ErrMultipleTokens = errors.New("bearer: token presented in multiple places") + var ErrNoToken = errors.New("bearer: no bearer token in request") + func StatusFor(errCode string) int + func Token(r *http.Request, opts ...ExtractOption) (string, error) + type Challenge struct + Error string + ErrorDescription string + ErrorURI string + Extra map[string]string + Realm string + Scope string + func (c Challenge) String() string + func (c Challenge) WriteHeader(w http.ResponseWriter) + type ExtractOption func(*extractConfig) + func WithFormBody() ExtractOption + func WithURIQuery() ExtractOption