Documentation ¶
Index ¶
- func ContextGetSession(r *http.Request) *types.Session
- func ContextSetSession(r *http.Request, sess *types.Session) *http.Request
- func GetSessionCookie(responseToken string, expirationTime time.Time, origin string) (*http.Cookie, error)
- func GetSessionRolesFromRBAC(sessionGroupIDs []string, groups []kotsv1beta1.IdentityConfigGroup) []string
- func Parse(kotsStore store.Store, signedToken string) (*types.Session, error)
- func SignJWT(s *types.Session) (string, error)
- func StartSessionPurgeCronJob() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionCookie ¶ added in v1.98.3
func GetSessionRolesFromRBAC ¶
func GetSessionRolesFromRBAC(sessionGroupIDs []string, groups []kotsv1beta1.IdentityConfigGroup) []string
func StartSessionPurgeCronJob ¶
func StartSessionPurgeCronJob() error
StartSessionPurgeCronJob - start the session purge cron job which deletes expired sessions periodically according to the cron spec above
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.