Documentation ¶
Index ¶
- func NewAuthenticator(opts ...Option) (engine.Authenticator, error)
- type Authenticator
- func (jwt *Authenticator) Authenticate(ctx context.Context, contextType engine.ContextType) (*engine.AuthClaims, error)
- func (jwt *Authenticator) AuthenticateToken(token string) (*engine.AuthClaims, error)
- func (jwt *Authenticator) Close()
- func (jwt *Authenticator) CreateIdentity(claims engine.AuthClaims) (string, error)
- func (jwt *Authenticator) CreateIdentityWithContext(ctx context.Context, contextType engine.ContextType, claims engine.AuthClaims) (context.Context, error)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(opts ...Option) (engine.Authenticator, error)
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func (*Authenticator) Authenticate ¶
func (jwt *Authenticator) Authenticate(ctx context.Context, contextType engine.ContextType) (*engine.AuthClaims, error)
func (*Authenticator) AuthenticateToken ¶
func (jwt *Authenticator) AuthenticateToken(token string) (*engine.AuthClaims, error)
func (*Authenticator) Close ¶
func (jwt *Authenticator) Close()
func (*Authenticator) CreateIdentity ¶
func (jwt *Authenticator) CreateIdentity(claims engine.AuthClaims) (string, error)
func (*Authenticator) CreateIdentityWithContext ¶
func (jwt *Authenticator) CreateIdentityWithContext(ctx context.Context, contextType engine.ContextType, claims engine.AuthClaims) (context.Context, error)
type Option ¶
type Option func(d *Options)
func WithSigningMethod ¶
WithSigningMethod set signing method
Click to show internal directories.
Click to hide internal directories.