Documentation
¶
Overview ¶
Package jwt provides JWT token authentication for Bifrost. It supports JWKS-based key discovery and static key configuration.
Index ¶
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
}
Authenticator provides JWT token authentication.
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(ctx context.Context, username, password string) (*auth.UserInfo, error)
Authenticate validates a JWT token. The username parameter is ignored; the password parameter should contain the JWT.
func (*Authenticator) Close ¶
func (a *Authenticator) Close() error
Close stops background tasks. Safe to call multiple times.
func (*Authenticator) Name ¶
func (a *Authenticator) Name() string
Name returns the authenticator name.
func (*Authenticator) Type ¶
func (a *Authenticator) Type() string
Type returns the authenticator type.
Click to show internal directories.
Click to hide internal directories.