session

package
v0.0.0-...-61ee147 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSSOToken

func CreateSSOToken(c *gin.Context) (token string, err error)

CreateSSOToken creates a one-time SSO token. Caller must have passed Verify(ROUTE_LOGIN).

func ExchangeSSOToken

func ExchangeSSOToken(c *gin.Context) (encryptedSessionID string, err error)

ExchangeSSOToken consumes the token from context, creates a session, encrypts session_id with request Keys and returns it.

func Login

func Login(c *gin.Context) (string, error)

Login returns encrypted session id by aes algorithm

func Logout

func Logout(c *gin.Context, sessionID string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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