token

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateART

func CreateART(
	createdFor *types.Principal,
	lifetime *time.Duration,
) (string, error)

CreateART is same as CreateSAT, without Principal convert to User

func CreatePAT

func CreatePAT(
	ctx context.Context,
	tokenStore store.TokenStore,
	createdBy *types.Principal,
	createdFor *types.User,
	identifier string,
	lifetime *time.Duration,
) (*types.Token, string, error)

func CreateSAT

func CreateSAT(
	ctx context.Context,
	tokenStore store.TokenStore,
	createdBy *types.Principal,
	createdFor *types.ServiceAccount,
	identifier string,
	lifetime *time.Duration,
) (*types.Token, string, error)

func CreateUserSession

func CreateUserSession(
	ctx context.Context,
	tokenStore store.TokenStore,
	user *types.User,
	identifier string,
) (*types.Token, string, error)

func CreateUserWithAccessPermissions

func CreateUserWithAccessPermissions(
	user *types.User,
	accessPermissions *jwt.SubClaimsAccessPermissions,
) (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