fakejwtissuer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTIssuer

type JWTIssuer struct {
	Token  string
	Signer crypto.Signer
}

JWTIssuer is a fake implementation of the JWTIssuer interface.

func New

func New(t *testing.T, kid string, sub string, aud []string) *JWTIssuer

func (JWTIssuer) IssueJWT

func (j JWTIssuer) IssueJWT(ctx context.Context, params *jwt.JWTParams) (string, error)

Jump to

Keyboard shortcuts

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