Documentation
¶
Overview ¶
Package oidctest is a small in-process OIDC provider for mnemon tests.
Index ¶
- type IDP
- func (p *IDP) Fetches() int
- func (p *IDP) HideKey(kid string)
- func (p *IDP) RotateKey(t *testing.T, kid string)
- func (p *IDP) SetGroups(principal string, groups []string)
- func (p *IDP) ShowKey(kid string, pub *rsa.PublicKey)
- func (p *IDP) Sign(principal string, ttl time.Duration, extra jwt.MapClaims) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDP ¶
type IDP struct {
URL string
Issuer string
Key *rsa.PrivateKey
Kid string
Audience string
// NextAccessTTL overrides the access-token lifetime for the next token response.
NextAccessTTL time.Duration
// contains filtered or unexported fields
}
IDP serves discovery, JWKS, an authorization redirect, and a token endpoint.
Click to show internal directories.
Click to hide internal directories.