idpsession

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCookie

func ClearCookie(w http.ResponseWriter)

func CreateIdpSession

func CreateIdpSession(session IdpSession) error

func DeactivateAllForUser

func DeactivateAllForUser(userID string) error

func DeactivateIdpSession

func DeactivateIdpSession(sessionID string) error

func ReadCookie

func ReadCookie(r *http.Request) string

func SetCookie

func SetCookie(w http.ResponseWriter, sessionID string)

func UpdateLastActivity

func UpdateLastActivity(sessionID string) error

Types

type IdpSession

type IdpSession struct {
	ID             string
	UserID         string
	UserAgent      string
	IPAddress      string
	LastActivityAt time.Time
	CreatedAt      time.Time
	DeactivatedAt  *time.Time
}

func IdpSessionByID

func IdpSessionByID(sessionID string) (*IdpSession, error)

Jump to

Keyboard shortcuts

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