Documentation
¶
Index ¶
- Variables
- func TestDiscovery(testIssuerURL string) oidc.DiscoveryJSON
- type Provider
- func (p *Provider) Context() context.Context
- func (p *Provider) Mock() *httpt.Server
- func (p *Provider) MockDiscoveryCall()
- func (p *Provider) MockPubKeysCall(jwkSetJSON []byte)
- func (p *Provider) NewIDToken(clientID string, subject string, nonce string, customClaims ...interface{}) (idToken string, jwkSetJSON []byte)
- func (p *Provider) Setup(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TestIssuerURL = "https://issuer.org"
)
Defaults
Functions ¶
func TestDiscovery ¶
func TestDiscovery(testIssuerURL string) oidc.DiscoveryJSON
Types ¶
type Provider ¶
type Provider struct {
IssuerURL string
// Used for initial discovery.
Discovery oidc.DiscoveryJSON
// contains filtered or unexported fields
}
func (*Provider) MockDiscoveryCall ¶
func (p *Provider) MockDiscoveryCall()
func (*Provider) MockPubKeysCall ¶
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.