const openIDWellKnownWebPath …
const authWebPath …
const tokenWebPath …
const jwksWebPath …
var ErrRefreshTokenExpired …
var ErrBadClientID …
type TestServer …
func (ts *TestServer) JwksHandler() *handlers.MockJWKsHandler { … }
func (ts *TestServer) TokenHandler() *handlers.MockTokenHandler { … }
func (ts *TestServer) URL() string { … }
func (ts *TestServer) TokenURL() (string, error) { … }
func BuildAndRunTestServer(t *testing.T, caPath, caKeyPath, issuerOverride string) *TestServer { … }
func discoveryDocHandler(t *testing.T, writer http.ResponseWriter, httpServerURL, issuer string) { … }
type JosePrivateKey …
func TokenHandlerBehaviorReturningPredefinedJWT[K JosePrivateKey](
t *testing.T,
privateKey K,
claims map[string]interface{ … }
type JosePublicKey …
func DefaultJwksHandlerBehavior[K JosePublicKey](t *testing.T, verificationPublicKey K) func() jose.JSONWebKeySet { … }
type JoseKey …
func GetSignatureAlgorithm[K JoseKey](key K) jose.SignatureAlgorithm { … }