testutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesystemAdapter

func NewFilesystemAdapter(t testing.TB) *storage.FilesystemAdapter

func NewSQLiteClient

func NewSQLiteClient(t testing.TB) (context.Context, *ent.Client)

Types

type JWKS added in v1.1.2

type JWKS struct {
	Server *httptest.Server
	Key    *rsa.PrivateKey
	KID    string
}

JWKS is a local JWKS endpoint backed by a single RSA key.

func NewJWKS added in v1.1.2

func NewJWKS(t testing.TB) *JWKS

func (*JWKS) Sign added in v1.1.2

func (j *JWKS) Sign(t testing.TB, kid any, claims jwt.MapClaims) string

Sign issues an RS256 token carrying the given kid and claims.

Jump to

Keyboard shortcuts

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