rotation

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RotateMytokenAfterAT added in v0.3.0

func RotateMytokenAfterAT(
	rlog log.Ext1FieldLogger, tx *sqlx.Tx, oldJWT string, old *mytoken.Mytoken, clientMetaData api.ClientMetaData,
) (*mytoken.Mytoken, bool, error)

RotateMytokenAfterAT rotates a mytoken after it was used to obtain an AT if rotation is enabled for that case

func RotateMytokenAfterATForResponse added in v0.3.0

func RotateMytokenAfterATForResponse(
	rlog log.Ext1FieldLogger, tx *sqlx.Tx, oldJWT string, old *mytoken.Mytoken, clientMetaData api.ClientMetaData,
	responseType model.ResponseType,
) (*pkg.MytokenResponse, error)

RotateMytokenAfterATForResponse rotates a mytoken after it was used for obtaining an AT if rotation is enabled for that case and returns a pkg.MytokenResponse with the updated infos

func RotateMytokenAfterOther added in v0.3.0

func RotateMytokenAfterOther(
	rlog log.Ext1FieldLogger, tx *sqlx.Tx, oldJWT string, old *mytoken.Mytoken, clientMetaData api.ClientMetaData,
) (*mytoken.Mytoken, bool, error)

RotateMytokenAfterOther rotates a mytoken after it was used for other usages than AT if rotation is enabled for that case

func RotateMytokenAfterOtherForResponse added in v0.3.0

func RotateMytokenAfterOtherForResponse(
	rlog log.Ext1FieldLogger, tx *sqlx.Tx, oldJWT string, old *mytoken.Mytoken, clientMetaData api.ClientMetaData,
	responseType model.ResponseType,
) (*pkg.MytokenResponse, error)

RotateMytokenAfterOtherForResponse rotates a mytoken after it was used for other usages than AT if rotation is enabled for that case and returns a pkg.MytokenResponse with the updated infos

Types

This section is empty.

Jump to

Keyboard shortcuts

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