Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAuthServiceInContext = errors.New("no auth service in context") ErrInvalidAuthServiceInContext = errors.New("invalid auth service in context") )
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface {
Init(ctx context.Context) error
Editor() RequestEditor
ClearCache()
Name() string
}
func FromContext ¶
func FromContext(ctx context.Context) (Authenticator, error)
type BearerProvider ¶
Click to show internal directories.
Click to hide internal directories.