Documentation ¶
Index ¶
- func GetJWTHeaderContext(c ctx) *jwt.Header
- func GetJWTPayloadContext(c ctx, payload interface{}) error
- func JWTGuardMiddleware(j JWT, c JWTGuardMiddlewareConfig) web.Middleware
- func WithJWT() plugins.Plugin
- func WithOAuth() plugins.Plugin
- type Code
- type ConfigJWT
- type ConfigOAuth
- type JWT
- type JWTGuardMiddlewareConfig
- type OAuth
- type OAuthUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWTHeaderContext ¶
func GetJWTPayloadContext ¶
func GetJWTPayloadContext(c ctx, payload interface{}) error
func JWTGuardMiddleware ¶
func JWTGuardMiddleware(j JWT, c JWTGuardMiddlewareConfig) web.Middleware
Types ¶
type ConfigOAuth ¶
type ConfigOAuth struct {
Providers []oauth.ConfigItem `yaml:"oauth"`
}
ConfigOAuth oauth config model
func (*ConfigOAuth) Default ¶
func (v *ConfigOAuth) Default()
Click to show internal directories.
Click to hide internal directories.