Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvOidcEnabled = "HEXA_OIDC_ENABLED" KeyHexaState = "hexa-state" KeyHexaNonce = "hexa-nonce" KeyEmail = "email" KeySubject = "sub" KeyIdToken = "idtoken" KeySessionId = "session-id" HexaCookie = "hexa-cookie" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionInfo ¶
type SessionManager ¶
type SessionManager interface { StartLogin(state string, nonce string, r *http.Request) string Session(r *http.Request) (session *SessionInfo, err error) StoreLoginSession(rawToken string, email string, sub string, r *http.Request) Logout(r *http.Request) (err error) GetState(r *http.Request) (session string, state string, nonce string) ValidateSession(w http.ResponseWriter, r *http.Request) bool SetSessionMiddleware(router *mux.Router) GetScs() *scs.SessionManager }
func NewSessionManager ¶
func NewSessionManager() SessionManager
Click to show internal directories.
Click to hide internal directories.