Documentation
¶
Index ¶
- type Authenticator
- func (a *Authenticator) AdapterCredential(ctx context.Context, _ string, principal auth.Principal, sessionID string) (int64, int64, bool, error)
- func (a *Authenticator) Authenticate(_ context.Context, token string) (auth.Principal, error)
- func (a *Authenticator) Authorize(_ context.Context, principal auth.Principal, scope auth.Scope) error
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func New ¶
func New(tokens []Token) *Authenticator
func (*Authenticator) AdapterCredential ¶ added in v0.1.7
func (*Authenticator) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.