Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("invalid token")
ErrInvalidToken is returned when the token provided is not valid.
Functions ¶
func Midware ¶
func Midware(publicKeyBase64Str string, config MidwareOpts) (web.Middleware, error)
Midware handles token authentication for external authentication sources.
Types ¶
type MidwareOpts ¶
type MidwareOpts struct { // AllowQueryString is true when we want to allow accessing the tokenString // from the query string as a fallback. AllowQueryString bool }
MidwareOpts describes the options for configuring the Midware.
Click to show internal directories.
Click to hide internal directories.