token

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: AGPL-3.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ConsoleSTSAndJWTDurationSeconds = "CONSOLE_STS_AND_JWT_DURATION_SECONDS"
	ConsolePBKDFPassphrase          = "CONSOLE_PBKDF_PASSPHRASE"
	ConsolePBKDFSalt                = "CONSOLE_PBKDF_SALT"
)

Variables

This section is empty.

Functions

func GetConsoleSTSAndJWTDurationInSeconds

func GetConsoleSTSAndJWTDurationInSeconds() int

ConsoleSTSAndJWTDurationSeconds returns the default session duration for the STS requested tokens and the generated JWTs. Ideally both values should match so jwt and Minio sts sessions expires at the same time.

func GetPBKDFPassphrase

func GetPBKDFPassphrase() string

GetPBKDFPassphrase returns passphrase for the pbkdf2 function used to encrypt JWT payload

func GetPBKDFSalt

func GetPBKDFSalt() string

GetPBKDFSalt returns salt for the pbkdf2 function used to encrypt JWT payload

Types

This section is empty.

Jump to

Keyboard shortcuts

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