Documentation ¶
Index ¶
- func Client(authenticator engine.Authenticator, opts ...Option) middleware.Middleware
- func FromContext(ctx context.Context) (*engine.AuthClaims, bool)
- func NewContext(ctx context.Context, claims *engine.AuthClaims) context.Context
- func Server(authenticator engine.Authenticator) middleware.Middleware
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(authenticator engine.Authenticator, opts ...Option) middleware.Middleware
Client is a client authenticator middleware.
func FromContext ¶
func FromContext(ctx context.Context) (*engine.AuthClaims, bool)
func NewContext ¶
func Server ¶
func Server(authenticator engine.Authenticator) middleware.Middleware
Server is a server authenticator middleware.
Types ¶
type Option ¶
type Option func(*options)
func WithAuthClaims ¶
func WithAuthClaims(claims engine.AuthClaims) Option
Click to show internal directories.
Click to hide internal directories.