session

package
v1.103.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextGetApp added in v1.102.0

func ContextGetApp(r *http.Request) *apptypes.App

func ContextGetLicense added in v1.102.0

func ContextGetLicense(r *http.Request) *v1beta1.License

func ContextGetSession

func ContextGetSession(r *http.Request) *types.Session

func ContextSetApp added in v1.102.0

func ContextSetApp(r *http.Request, app *apptypes.App) *http.Request

func ContextSetLicense added in v1.102.0

func ContextSetLicense(r *http.Request, license *v1beta1.License) *http.Request

func ContextSetSession

func ContextSetSession(r *http.Request, sess *types.Session) *http.Request

func GetSessionCookie added in v1.98.3

func GetSessionCookie(responseToken string, expirationTime time.Time, origin string) (*http.Cookie, error)

func GetSessionRolesFromRBAC

func GetSessionRolesFromRBAC(sessionGroupIDs []string, groups []kotsv1beta1.IdentityConfigGroup) []string

func Parse

func Parse(kotsStore store.Store, signedToken string) (*types.Session, error)

func SignJWT

func SignJWT(s *types.Session) (string, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL