Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetContext ¶
func SetContext(req *http.Request, gastonContext *GastonContext) *http.Request
SetContext sets context to http.Request
Types ¶
type GastonContext ¶
GastonContext keeps and collects infomation for Requests
func GetContext ¶
func GetContext(req *http.Request) *GastonContext
GetContext returns context from http.Request
type JWTAuthorizationConfig ¶
type JWTAuthorizationConfig struct {
Header string
Scheme string
HmacSecret string
RolesClaim string
UserClaim string
RemoteUserHeader string
RemoteRolesHeader string
}
JWTAuthorizationConfig stores config
type Middleware ¶
Middleware returns request handlers
func NewJWTAuthorizationMiddleware ¶
func NewJWTAuthorizationMiddleware(config JWTAuthorizationConfig) Middleware
NewJWTAuthorizationMiddleware returns Middleware to handle JWT tokens
Click to show internal directories.
Click to hide internal directories.