Documentation
¶
Index ¶
- func CheckOrGenerateJwtSecret(jwtSecret string) []byte
- func Decrypt(ciphertext string) (string, error)
- func Encrypt(plaintext string) (string, error)
- func EvalMatch(v any, want []string) bool
- func GetBoolClaim(m map[string]any, key string) bool
- func GetByPath(m map[string]any, path string) (any, bool)
- func GetStringClaim(m map[string]any, key string) string
- func GetStringSliceClaim(m map[string]any, key string) []string
- func InitEncryption(cfg *config.Config)
- func ParseJWTClaims(idToken string) map[string]any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOrGenerateJwtSecret ¶
CheckOrGenerateJwtSecret verifies a secret exists or generates a random one
func GetBoolClaim ¶
GetBoolClaim extracts a boolean claim from a map
func GetStringClaim ¶
GetStringClaim extracts a string claim from a map
func GetStringSliceClaim ¶
GetStringSliceClaim extracts a string slice claim from a map
func InitEncryption ¶
InitEncryption initializes the global encryption key based on configuration
func ParseJWTClaims ¶
ParseJWTClaims decodes and unmarshals the payload part of a JWT
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.