Documentation
¶
Overview ¶
Package identitytest is a tiny OIDC issuer (discovery + JWKS + token minting + an auto-approving authorization-code/PKCE flow) for tests and the compose demo. Not for production use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Issuer ¶
type Issuer struct {
URL string // issuer identifier; set once serving
Key *rsa.PrivateKey
KID string
// contains filtered or unexported fields
}
Issuer serves /.well-known/openid-configuration and /jwks.
func (*Issuer) Handler ¶
Handler serves discovery and JWKS; i.URL must already be the public issuer URL.
func (*Issuer) Mint ¶
Mint signs claims (RS256) with the issuer key. iss/exp/iat are defaulted, and email_verified=true when an email is present (as a real IdP would); a nil claim value removes the claim (e.g. "email_verified": nil).
Click to show internal directories.
Click to hide internal directories.