internal

package
v0.0.0-...-f15f685 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSigner

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

func NewTestSigner

func NewTestSigner(t testing.TB, algs ...string) *TestSigner

func (*TestSigner) GetKeys

func (t *TestSigner) GetKeys(ctx context.Context) ([]jwt.PublicKey, error)

func (*TestSigner) GetKeysByKID

func (t *TestSigner) GetKeysByKID(ctx context.Context, kid string) ([]jwt.PublicKey, error)

func (*TestSigner) SignClaimsWithAlgorithm

func (t *TestSigner) SignClaimsWithAlgorithm(alg, typHdr string, claims any) (string, error)

func (*TestSigner) SignWithAlgorithm

func (t *TestSigner) SignWithAlgorithm(ctx context.Context, alg, typHdr string, payload []byte) (string, error)

func (*TestSigner) SupportedAlgorithms

func (t *TestSigner) SupportedAlgorithms() []string

Directories

Path Synopsis
Package oauth2 implements base primitives for parsing a subset of oauth2 messages and errors
Package oauth2 implements base primitives for parsing a subset of oauth2 messages and errors

Jump to

Keyboard shortcuts

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