Documentation
¶
Index ¶
- func Client(authenticator engine.Authenticator, opts ...Option) middleware.Middleware
- func FromContext(ctx context.Context) (claims engine.Claims, ok bool)
- func NewContext(ctx context.Context, claims engine.Claims) 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 ¶
FromContext extracts the claims from the provided context (if any).
func NewContext ¶
NewContext injects the provided claims in to the parent context.
func Server ¶
func Server(authenticator engine.Authenticator) middleware.Middleware
Server is a server authenticator middleware.
Types ¶
Click to show internal directories.
Click to hide internal directories.