jwt_utils

package
v0.0.0-...-fe06dec Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RsaTokenGenerator  = "jwt_rsa_generator"
	FileTokenGenerator = "jwt_file_reader"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtGenerator

type JwtGenerator func(c context.Context) (string, error)

func NewFileBasedJwtGenerator

func NewFileBasedJwtGenerator(jwtFilename string) (JwtGenerator, error)

func NewRSABasedJwtGenerator

func NewRSABasedJwtGenerator(privateKeyFile string, clientId string, tokenExpiry int) (JwtGenerator, error)

Jump to

Keyboard shortcuts

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