session

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

cSpell:ignore addin, goginrpf, gonic, paulo ferreira

cSpell:ignore gonic, orgs, paulo, ferreira

cSpell:ignore goginrpf, gonic, paulo ferreira

cSpell:ignore goginrpf, gonic, paulo ferreira

cSpell:ignore gonic, orgs, paulo, ferreira

cSpell:ignore goginrpf, gonic, paulo ferreira

cSpell:ignore goginrpf, gonic, paulo ferreira

cSpell:ignore goginrpf, gonic, paulo ferreira

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertIfSelf

func AssertIfSelf(r rpf.GINProcessor, c *gin.Context)

func AssertNoUserSession

func AssertNoUserSession(r rpf.GINProcessor, c *gin.Context)

func AssertNotSystemAdmin

func AssertNotSystemAdmin(r rpf.GINProcessor, c *gin.Context)

func AssertSessionRegistered

func AssertSessionRegistered(r rpf.GINProcessor, c *gin.Context)

func AssertSystemAdmin

func AssertSystemAdmin(r rpf.GINProcessor, c *gin.Context)

func AssertUserSession

func AssertUserSession(r rpf.GINProcessor, c *gin.Context)

func CloseUserSession

func CloseUserSession(r rpf.GINProcessor, c *gin.Context)

func CreateStoreKey

func CreateStoreKey(id uint64) string

Utilityu: Store ID to Store Session Key

func ExtendStoreSession

func ExtendStoreSession(r rpf.GINProcessor, c *gin.Context)

func GetUserFromSession

func GetUserFromSession(r rpf.GINProcessor, c *gin.Context)

func GroupCloseSessionWithError

func GroupCloseSessionWithError(parent rpf.GINProcessor, ecode int) *rpf.ProcessorGroup

func GroupGetSessionUser

func GroupGetSessionUser(parent rpf.GINProcessor, checkUserLock bool, noAdmin bool) *rpf.ProcessorGroup

func IFCloseSessionOnBlockedUser

func IFCloseSessionOnBlockedUser(parent rpf.GINProcessor, u *orm.UserRegistry) *rpf.ProcessorIF

func IsSelf

func IsSelf(c *gin.Context, uid uint64) bool

func OpenUserSession

func OpenUserSession(r rpf.GINProcessor, c *gin.Context)

func SaveSession

func SaveSession(r rpf.GINProcessor, c *gin.Context)

func SessionExtractUser

func SessionExtractUser(r rpf.GINProcessor, c *gin.Context)

func SessionStoreClose

func SessionStoreClose(r rpf.GINProcessor, c *gin.Context)

func SessionStoreOpen

func SessionStoreOpen(r rpf.GINProcessor, c *gin.Context)

TODO: PROBLEM: Currently if User Changes Password * All of the Stores Keys Have to be unsealed and re-sealed with * the new password, since it's used as the decryption key for store * passwords

func SessionStoreSave

func SessionStoreSave(r rpf.GINProcessor, c *gin.Context)

func SessionUserToRegistry

func SessionUserToRegistry(r rpf.GINProcessor, c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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