Documentation ¶
Index ¶
- func CallbackHandler(w http.ResponseWriter, r *http.Request)
- func Configure()
- func HealthcheckHandler(w http.ResponseWriter, r *http.Request)
- func LoginHandler(w http.ResponseWriter, r *http.Request)
- func LogoutHandler(w http.ResponseWriter, r *http.Request)
- func ValidateRequestHandler(w http.ResponseWriter, r *http.Request)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackHandler ¶ added in v0.2.1
func CallbackHandler(w http.ResponseWriter, r *http.Request)
CallbackHandler /auth - validate info from oauth provider (Google, GitHub, OIDC, etc) - issue jwt in the form of a cookie
func HealthcheckHandler ¶ added in v0.2.15
func HealthcheckHandler(w http.ResponseWriter, r *http.Request)
HealthcheckHandler /healthcheck just returns 200 '{ "ok": true }'
func LoginHandler ¶
func LoginHandler(w http.ResponseWriter, r *http.Request)
LoginHandler /login currently performs a 302 redirect to Google
func LogoutHandler ¶ added in v0.2.1
func LogoutHandler(w http.ResponseWriter, r *http.Request)
LogoutHandler /logout Destroys Vouch session If oauth.end_session_endpoint present in conf, also redirects to destroy session at oauth provider If "url" param present in request, also redirects to that (after destroying one or both sessions)
func ValidateRequestHandler ¶
func ValidateRequestHandler(w http.ResponseWriter, r *http.Request)
ValidateRequestHandler /validate
Types ¶
Click to show internal directories.
Click to hide internal directories.