Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AclChecks ¶
func AclChecks(required []string) gin.HandlerFunc
func NewAuthMiddleware ¶
func NewAuthMiddleware(cacher util.VerifierCache) gin.HandlerFunc
func NewEnvMiddleware ¶
func NewEnvMiddleware() gin.HandlerFunc
func RateLimiter ¶
func RateLimiter() gin.HandlerFunc
func SecurityMiddleware ¶
func SecurityMiddleware() gin.HandlerFunc
Types ¶
type AccessToken ¶
type AccessToken struct { Issuer string `json:"iss"` // Who issued it? UserCode string `json:"sub"` // Who's it about? Expiration int64 `json:"exp"` // When does it expire? IssuedAt int64 `json:"iat"` // When was it issued? Code string `json:"jti"` // What should we call it? ClientId string `json:"azp"` // What system was it given to? // Non-manditory fields MUST be "omitempty" Nonce string `json:"nonce,omitempty"` // Maybe have a random number ContextCode string `json:"ctx,omitempty"` // What usage context is this from Scope string `json:"scope,omitempty"` // What level of access was requested Permitted []string `json:"perm,omitempty"` // What can the subject do ValidResources *[]string `json:"aud,omitempty"` // What resources are allowed to look at it. Browser string `json:"bro,omitempty"` // What browser did it come from? Strength string `json:"acr,omitempty"` // How safe is it? Method string `json:"amr,omitempty"` // How did they get it? }
Click to show internal directories.
Click to hide internal directories.