Documentation ¶
Index ¶
- type Provider
- func (p *Provider) MockDiscoveryCall()
- func (p *Provider) MockPubKeysCall(jwkSetJSON []byte)
- func (p *Provider) MockTokenCall(statusCode int, token string)
- func (p *Provider) NewIDToken(clientID string, subject string, nonce string, customClaims ...interface{}) (idToken string, jwkSetJSON []byte)
- func (p *Provider) Setup(t *testing.T)
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { IssuerTestSrv *httptest.Server ExpectedRequests []Request // contains filtered or unexported fields }
func (*Provider) MockDiscoveryCall ¶
func (p *Provider) MockDiscoveryCall()
func (*Provider) MockPubKeysCall ¶
func (*Provider) MockTokenCall ¶ added in v0.2.0
func (*Provider) NewIDToken ¶
func (p *Provider) NewIDToken(clientID string, subject string, nonce string, customClaims ...interface{}) (idToken string, jwkSetJSON []byte)
NewIDToken creates new token. Feel free to override basic claims in customClaim for various tests. NOTE: It is important that on every call we
Click to show internal directories.
Click to hide internal directories.