jwthelper

package
v0.0.0-...-1c52440 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEcdsaPrivateKey

func LoadEcdsaPrivateKey(pathToPrivateKeyFile string, pathToPrivateKeyPasswordFile string) (*ecdsa.PrivateKey, error)

Types

type EcKeyJWTGenerator

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

func NewEcKeyJWTGenerator

func NewEcKeyJWTGenerator(kid string, key *ecdsa.PrivateKey, signingMethod jwt.SigningMethod) *EcKeyJWTGenerator

func (*EcKeyJWTGenerator) Token

func (g *EcKeyJWTGenerator) Token(ctx context.Context, data *oauth2.GenerateBasic, isGenRefresh bool) (string, string, error)

Jump to

Keyboard shortcuts

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