Documentation ¶
Index ¶
- Variables
- func AuthnSessions(t testing.TB, ctx oidc.Context) []*goidc.AuthnSession
- func Clients(t *testing.T, ctx oidc.Context) []*goidc.Client
- func GrantSessions(t *testing.T, ctx oidc.Context) []*goidc.GrantSession
- func NewClient(t testing.TB) (client *goidc.Client, secret string)
- func NewContext(t testing.TB) oidc.Context
- func PrivateJWKS(t testing.TB, ctx oidc.Context) goidc.JSONWebKeySet
- func PrivatePS256JWK(t testing.TB, keyID string, usage goidc.KeyUsage) goidc.JSONWebKey
- func PrivateRS256JWK(t *testing.T, keyID string, usage goidc.KeyUsage) goidc.JSONWebKey
- func PrivateRSAOAEP256JWK(t *testing.T, keyID string) goidc.JSONWebKey
- func PrivateRSAOAEPJWK(t *testing.T, keyID string) goidc.JSONWebKey
- func RawJWKS(jwk goidc.JSONWebKey) []byte
- func SafeClaims(jws string, jwk goidc.JSONWebKey) (map[string]any, error)
- func Sign(t testing.TB, claims map[string]any, jwk goidc.JSONWebKey) string
- func UnsafeClaims(jws string, algs ...goidc.SignatureAlgorithm) (map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scope1 = goidc.NewScope("scope1") Scope2 = goidc.NewScope("scope2") )
Functions ¶
func AuthnSessions ¶
func GrantSessions ¶
func PrivateJWKS ¶ added in v0.5.0
func PrivatePS256JWK ¶
func PrivateRS256JWK ¶
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 UnsafeClaims ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.