Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(opts ...Option) (authn.Authenticator, error)
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(ctx context.Context) (*authn.AuthClaims, error)
func (*Authenticator) CreateIdentity ¶
func (a *Authenticator) CreateIdentity(ctx context.Context, claims authn.AuthClaims) (string, error)
type Option ¶
type Option func(*Authenticator)
func WithExpiresAt ¶
func WithKeyFunc ¶
func WithKeyFunc(k jwt.Keyfunc) Option
func WithParseContext ¶
func WithParseContext(p ParseContextToken) Option
func WithSecretKey ¶
func WithSigMethod ¶
Click to show internal directories.
Click to hide internal directories.