Documentation
¶
Index ¶
- func ClaimsFromJWT(jwt string) (jwtmanager.LassoClaims, error)
- func FindJWT(r *http.Request) string
- func GCallbackHandler(w http.ResponseWriter, r *http.Request)
- func LoginHandler(w http.ResponseWriter, r *http.Request)
- func ValidateRequestHandler(w http.ResponseWriter, r *http.Request)
- func VerifyUser(u structs.User) (ok bool, err error)
- type AuthError
- type Index
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimsFromJWT ¶
func ClaimsFromJWT(jwt string) (jwtmanager.LassoClaims, error)
ClaimsFromJWT look everywhere for the JWT, then parse the jwt and return the claims
func GCallbackHandler ¶
func GCallbackHandler(w http.ResponseWriter, r *http.Request)
GCallbackHandler /auth - validate info from Google - create user - issue jwt in the form of a cookie
func LoginHandler ¶
func LoginHandler(w http.ResponseWriter, r *http.Request)
LoginHandler /login currently performs a 302 redirect to Google
func ValidateRequestHandler ¶
func ValidateRequestHandler(w http.ResponseWriter, r *http.Request)
ValidateRequestHandler /validate TODO this should use the handler interface
Types ¶
Click to show internal directories.
Click to hide internal directories.