Documentation ¶
Index ¶
- func HeaderHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func IsAuth(ct context.Context) bool
- func JwtHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func RailsCookieHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func RailsHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func RailsMemcacheHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func RailsRedisHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func SimpleHandler(ac *Auth, next http.Handler) (http.HandlerFunc, error)
- func WithAuth(next http.Handler, ac *Auth) (http.Handler, error)
- type Auth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderHandler ¶
func JwtHandler ¶
func RailsCookieHandler ¶
func RailsHandler ¶
func RailsMemcacheHandler ¶
func RailsRedisHandler ¶
func SimpleHandler ¶
Types ¶
type Auth ¶
type Auth struct { Name string Type string Cookie string CredsInHeader bool `mapstructure:"creds_in_header"` SubsCredsInVars bool `mapstructure:"subs_creds_in_vars"` Rails struct { Version string SecretKeyBase string `mapstructure:"secret_key_base"` URL string Password string MaxIdle int `mapstructure:"max_idle"` MaxActive int `mapstructure:"max_active"` Salt string SignSalt string `mapstructure:"sign_salt"` AuthSalt string `mapstructure:"auth_salt"` } JWT provider.JWTConfig Header struct { Name string Value string Exists bool } }
Auth struct contains authentication related config values used by the GraphJin service
Click to show internal directories.
Click to hide internal directories.