Documentation
¶
Overview ¶
Package identitytest holds the conformance suite of identity.Verifier and a signer of Access JWTs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
Verifier identity.Verifier
// Subject is the subject of the principal that Valid gives.
Subject string
// Valid carries a credential that the Verifier accepts.
Valid func() *http.Request
// Expired carries a credential that has expired.
Expired func() *http.Request
// Forged carries a credential that is signed by a key that the Verifier does not trust.
Forged func() *http.Request
// Revoked carries a credential that was revoked. It is nil for a credential that cannot be revoked.
Revoked func() *http.Request
}
Fixture is a Verifier and the requests that it must judge. Each request func returns a new request.
Click to show internal directories.
Click to hide internal directories.