Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultConfig is the default middleware config. DefaultConfig = Config{ TokenKey: "token", Skipper: func(_ echo.Context) bool { return false }, } )
View Source
var Oauth2Config *oauth2.Config
Functions ¶
func InitOauth2Flow ¶
func InitOauth2Flow()
func Oauth2Callback ¶
func Oauth2Login ¶
func TokenHandler ¶
func TokenHandler() echo.MiddlewareFunc
TokenHandler gets the token from request using default config
func TokenHandlerWithConfig ¶
func TokenHandlerWithConfig(cfg *Config) echo.MiddlewareFunc
TokenHandlerWithConfig gets the token from request with given config
Types ¶
Click to show internal directories.
Click to hide internal directories.