jwt_generator

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserSuppliedJWTs added in v0.4.1

func GetUserSuppliedJWTs(fname string, count int64) (<-chan string, <-chan error)

GetUserSuppliedJWTs Gets a count number of JWTs from a file, reusing them if not enough exist to match count

Types

type Config

type Config struct {
	Ctx        context.Context
	Kid        string
	JwtKeyPath string

	JwtSub              string
	JwtCustomClaimsJSON string
	JwtIss              string
	JwtAud              string
	JwtsFilename        string
	// contains filtered or unexported fields
}

type JWTGenerator

type JWTGenerator struct {
	// contains filtered or unexported fields
}

func NewJWTGenerator

func NewJWTGenerator(config *Config) *JWTGenerator

func (*JWTGenerator) Generate

func (j *JWTGenerator) Generate(reqJwtCount int64, dir string, retrying bool) error

func (*JWTGenerator) JWTS

func (j *JWTGenerator) JWTS(count int64) (<-chan string, <-chan error)

Jump to

Keyboard shortcuts

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