Documentation
¶
Overview ¶
Package testutil provides a mock OIDC identity provider (discovery document, JWKS, token, and userinfo endpoints) for tests that exercise this module's OIDC client and validator against a real HTTP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIDP ¶ added in v0.11.0
type MockIDP struct {
Server *httptest.Server
Key *rsa.PrivateKey
Issuer string
}
MockIDP is a mock Identity Provider for testing OIDC flows.
func NewMockIDP ¶ added in v0.11.0
NewMockIDP creates a new MockIDP.
Click to show internal directories.
Click to hide internal directories.