oidctest

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scope1 = goidc.NewScope("scope1")
	Scope2 = goidc.NewScope("scope2")
)

Functions

func AuthnSessions

func AuthnSessions(t testing.TB, ctx oidc.Context) []*goidc.AuthnSession

func Clients

func Clients(t *testing.T, ctx oidc.Context) []*goidc.Client

func GrantSessions

func GrantSessions(t *testing.T, ctx oidc.Context) []*goidc.GrantSession

func NewClient

func NewClient(t testing.TB) (client *goidc.Client, secret string)

func NewContext

func NewContext(t testing.TB) oidc.Context

func PrivateJWKS added in v0.5.0

func PrivateJWKS(t testing.TB, ctx oidc.Context) goidc.JSONWebKeySet

func PrivatePS256JWK

func PrivatePS256JWK(
	t testing.TB,
	keyID string,
	usage goidc.KeyUsage,
) goidc.JSONWebKey

func PrivateRS256JWK

func PrivateRS256JWK(
	t *testing.T,
	keyID string,
	usage goidc.KeyUsage,
) goidc.JSONWebKey

func PrivateRSAOAEP256JWK added in v0.5.0

func PrivateRSAOAEP256JWK(
	t *testing.T,
	keyID string,
) goidc.JSONWebKey

func PrivateRSAOAEPJWK added in v0.0.2

func PrivateRSAOAEPJWK(
	t *testing.T,
	keyID string,
) goidc.JSONWebKey

func RawJWKS

func RawJWKS(jwk goidc.JSONWebKey) []byte

func SafeClaims

func SafeClaims(jws string, jwk goidc.JSONWebKey) (map[string]any, error)

func Sign added in v0.6.0

func Sign(t testing.TB, claims map[string]any, jwk goidc.JSONWebKey) string

func UnsafeClaims added in v0.4.0

func UnsafeClaims(jws string, algs ...goidc.SignatureAlgorithm) (map[string]any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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