Documentation ¶
Index ¶
- Constants
- func Config() *config.Config
- func Ingresses(cfg *config.Config) *ingress.Ingresses
- func NewGetRequest(target string, ingresses *ingress.Ingresses) *http.Request
- type AuthorizeRequest
- type IdentityProvider
- type IdentityProviderHandler
- func (ip *IdentityProviderHandler) Authorize(w http.ResponseWriter, r *http.Request)
- func (ip *IdentityProviderHandler) EndSession(w http.ResponseWriter, r *http.Request)
- func (ip *IdentityProviderHandler) Jwks(w http.ResponseWriter, r *http.Request)
- func (ip *IdentityProviderHandler) RefreshTokenGrant(w http.ResponseWriter, r *http.Request)
- func (ip *IdentityProviderHandler) Token(w http.ResponseWriter, r *http.Request)
- func (ip *IdentityProviderHandler) TokenCodeGrant(w http.ResponseWriter, r *http.Request)
- type RefreshTokenData
- type TestClientConfiguration
- func (c *TestClientConfiguration) ACRValues() string
- func (c *TestClientConfiguration) Audiences() map[string]bool
- func (c *TestClientConfiguration) AuthMethod() openidconfig.AuthMethod
- func (c *TestClientConfiguration) ClientID() string
- func (c *TestClientConfiguration) ClientJWK() jwk.Key
- func (c *TestClientConfiguration) ClientSecret() string
- func (c *TestClientConfiguration) PostLogoutRedirectURI() string
- func (c *TestClientConfiguration) ResourceIndicator() string
- func (c *TestClientConfiguration) Scopes() scopes.Scopes
- func (c *TestClientConfiguration) SetPostLogoutRedirectURI(uri string)
- func (c *TestClientConfiguration) UILocales() string
- func (c *TestClientConfiguration) WellKnownURL() string
- type TestConfiguration
- type TestProvider
- type TestProviderConfiguration
- func (t *TestProviderConfiguration) ACRValuesSupported() openidconfig.Supported
- func (t *TestProviderConfiguration) AuthorizationEndpoint() string
- func (t *TestProviderConfiguration) EndSessionEndpointURL() url.URL
- func (t *TestProviderConfiguration) IDTokenSigningAlg() jwa.KeyAlgorithm
- func (t *TestProviderConfiguration) Issuer() string
- func (t *TestProviderConfiguration) JwksURI() string
- func (t *TestProviderConfiguration) Name() string
- func (t *TestProviderConfiguration) SessionStateRequired() bool
- func (t *TestProviderConfiguration) SetAuthorizationEndpoint(url string)
- func (t *TestProviderConfiguration) SetCheckSessionIframe(url string)
- func (t *TestProviderConfiguration) SetEndSessionEndpoint(url string)
- func (t *TestProviderConfiguration) SetFrontchannelLogoutSessionSupported(val bool)
- func (t *TestProviderConfiguration) SetFrontchannelLogoutSupported(val bool)
- func (t *TestProviderConfiguration) SetIssuer(url string)
- func (t *TestProviderConfiguration) SetJwksURI(url string)
- func (t *TestProviderConfiguration) SetTokenEndpoint(url string)
- func (t *TestProviderConfiguration) SidClaimRequired() bool
- func (t *TestProviderConfiguration) TokenEndpoint() string
- func (t *TestProviderConfiguration) UILocalesSupported() openidconfig.Supported
- func (t *TestProviderConfiguration) WithCheckSessionIFrameSupport(url string)
- func (t *TestProviderConfiguration) WithFrontChannelLogoutSupport()
Constants ¶
View Source
const (
Ingress = "http://wonderwall"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizeRequest ¶
type IdentityProvider ¶
type IdentityProvider struct { Cfg *config.Config OpenIDConfig *TestConfiguration ProviderHandler *IdentityProviderHandler ProviderServer *httptest.Server RelyingPartyHandler *handlerpkg.Standalone RelyingPartyServer *httptest.Server // contains filtered or unexported fields }
func NewIdentityProvider ¶
func NewIdentityProvider(cfg *config.Config) *IdentityProvider
func (*IdentityProvider) Close ¶
func (in *IdentityProvider) Close()
func (*IdentityProvider) GetRequest ¶
func (in *IdentityProvider) GetRequest(target string) *http.Request
func (*IdentityProvider) RelyingPartyClient ¶
func (in *IdentityProvider) RelyingPartyClient() *http.Client
type IdentityProviderHandler ¶
type IdentityProviderHandler struct { Codes map[string]*AuthorizeRequest Config openidconfig.Config Provider *TestProvider Sessions map[string]string RefreshTokens map[string]*RefreshTokenData TokenDuration time.Duration }
func (*IdentityProviderHandler) Authorize ¶
func (ip *IdentityProviderHandler) Authorize(w http.ResponseWriter, r *http.Request)
func (*IdentityProviderHandler) EndSession ¶
func (ip *IdentityProviderHandler) EndSession(w http.ResponseWriter, r *http.Request)
func (*IdentityProviderHandler) Jwks ¶
func (ip *IdentityProviderHandler) Jwks(w http.ResponseWriter, r *http.Request)
func (*IdentityProviderHandler) RefreshTokenGrant ¶
func (ip *IdentityProviderHandler) RefreshTokenGrant(w http.ResponseWriter, r *http.Request)
func (*IdentityProviderHandler) Token ¶
func (ip *IdentityProviderHandler) Token(w http.ResponseWriter, r *http.Request)
func (*IdentityProviderHandler) TokenCodeGrant ¶
func (ip *IdentityProviderHandler) TokenCodeGrant(w http.ResponseWriter, r *http.Request)
type RefreshTokenData ¶
type TestClientConfiguration ¶
func (*TestClientConfiguration) ACRValues ¶
func (c *TestClientConfiguration) ACRValues() string
func (*TestClientConfiguration) Audiences ¶
func (c *TestClientConfiguration) Audiences() map[string]bool
func (*TestClientConfiguration) AuthMethod ¶
func (c *TestClientConfiguration) AuthMethod() openidconfig.AuthMethod
func (*TestClientConfiguration) ClientID ¶
func (c *TestClientConfiguration) ClientID() string
func (*TestClientConfiguration) ClientJWK ¶
func (c *TestClientConfiguration) ClientJWK() jwk.Key
func (*TestClientConfiguration) ClientSecret ¶
func (c *TestClientConfiguration) ClientSecret() string
func (*TestClientConfiguration) PostLogoutRedirectURI ¶
func (c *TestClientConfiguration) PostLogoutRedirectURI() string
func (*TestClientConfiguration) ResourceIndicator ¶
func (c *TestClientConfiguration) ResourceIndicator() string
func (*TestClientConfiguration) Scopes ¶
func (c *TestClientConfiguration) Scopes() scopes.Scopes
func (*TestClientConfiguration) SetPostLogoutRedirectURI ¶
func (c *TestClientConfiguration) SetPostLogoutRedirectURI(uri string)
func (*TestClientConfiguration) UILocales ¶
func (c *TestClientConfiguration) UILocales() string
func (*TestClientConfiguration) WellKnownURL ¶
func (c *TestClientConfiguration) WellKnownURL() string
type TestConfiguration ¶
type TestConfiguration struct { TestClient *TestClientConfiguration TestProvider *TestProviderConfiguration }
func NewTestConfiguration ¶
func NewTestConfiguration(cfg *config.Config) *TestConfiguration
func (*TestConfiguration) Client ¶
func (c *TestConfiguration) Client() openidconfig.Client
func (*TestConfiguration) Provider ¶
func (c *TestConfiguration) Provider() openidconfig.Provider
type TestProvider ¶
func NewTestJwksProvider ¶
func NewTestJwksProvider() *TestProvider
func (*TestProvider) GetPublicJwkSet ¶
func (*TestProvider) PrivateJwkSet ¶
func (p *TestProvider) PrivateJwkSet() *jwk.Set
func (*TestProvider) RefreshPublicJwkSet ¶
type TestProviderConfiguration ¶
type TestProviderConfiguration struct { Cfg *config.Config Metadata *openidconfig.ProviderMetadata }
func (*TestProviderConfiguration) ACRValuesSupported ¶
func (t *TestProviderConfiguration) ACRValuesSupported() openidconfig.Supported
func (*TestProviderConfiguration) AuthorizationEndpoint ¶
func (t *TestProviderConfiguration) AuthorizationEndpoint() string
func (*TestProviderConfiguration) EndSessionEndpointURL ¶
func (t *TestProviderConfiguration) EndSessionEndpointURL() url.URL
func (*TestProviderConfiguration) IDTokenSigningAlg ¶
func (t *TestProviderConfiguration) IDTokenSigningAlg() jwa.KeyAlgorithm
func (*TestProviderConfiguration) Issuer ¶
func (t *TestProviderConfiguration) Issuer() string
func (*TestProviderConfiguration) JwksURI ¶
func (t *TestProviderConfiguration) JwksURI() string
func (*TestProviderConfiguration) Name ¶
func (t *TestProviderConfiguration) Name() string
func (*TestProviderConfiguration) SessionStateRequired ¶
func (t *TestProviderConfiguration) SessionStateRequired() bool
func (*TestProviderConfiguration) SetAuthorizationEndpoint ¶
func (t *TestProviderConfiguration) SetAuthorizationEndpoint(url string)
func (*TestProviderConfiguration) SetCheckSessionIframe ¶
func (t *TestProviderConfiguration) SetCheckSessionIframe(url string)
func (*TestProviderConfiguration) SetEndSessionEndpoint ¶
func (t *TestProviderConfiguration) SetEndSessionEndpoint(url string)
func (*TestProviderConfiguration) SetFrontchannelLogoutSessionSupported ¶
func (t *TestProviderConfiguration) SetFrontchannelLogoutSessionSupported(val bool)
func (*TestProviderConfiguration) SetFrontchannelLogoutSupported ¶
func (t *TestProviderConfiguration) SetFrontchannelLogoutSupported(val bool)
func (*TestProviderConfiguration) SetIssuer ¶
func (t *TestProviderConfiguration) SetIssuer(url string)
func (*TestProviderConfiguration) SetJwksURI ¶
func (t *TestProviderConfiguration) SetJwksURI(url string)
func (*TestProviderConfiguration) SetTokenEndpoint ¶
func (t *TestProviderConfiguration) SetTokenEndpoint(url string)
func (*TestProviderConfiguration) SidClaimRequired ¶
func (t *TestProviderConfiguration) SidClaimRequired() bool
func (*TestProviderConfiguration) TokenEndpoint ¶
func (t *TestProviderConfiguration) TokenEndpoint() string
func (*TestProviderConfiguration) UILocalesSupported ¶
func (t *TestProviderConfiguration) UILocalesSupported() openidconfig.Supported
func (*TestProviderConfiguration) WithCheckSessionIFrameSupport ¶
func (t *TestProviderConfiguration) WithCheckSessionIFrameSupport(url string)
func (*TestProviderConfiguration) WithFrontChannelLogoutSupport ¶
func (t *TestProviderConfiguration) WithFrontChannelLogoutSupport()
Click to show internal directories.
Click to hide internal directories.