Documentation
¶
Index ¶
- type Config
- func (c *Config) Backends() map[string]http.RoundTripper
- func (c *Config) Data() (*OpenidConfiguration, error)
- func (c *Config) GetAuthorizationEndpoint() (string, error)
- func (c *Config) GetIssuer() (string, error)
- func (c *Config) GetTokenEndpoint() (string, error)
- func (c *Config) GetUserinfoEndpoint() (string, error)
- func (c *Config) GetVerifierMethod() (string, error)
- func (c *Config) JWKS() *jwk.JWKS
- func (c *Config) Unmarshal(rawJSON []byte) (interface{}, error)
- type Configs
- type OpenidConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents the configuration for an OIDC client
func NewConfig ¶
func NewConfig(ctx context.Context, oidc *config.OIDC, backends map[string]http.RoundTripper) (*Config, error)
NewConfig creates a new configuration for an OIDC client
func (*Config) Data ¶
func (c *Config) Data() (*OpenidConfiguration, error)
func (*Config) GetAuthorizationEndpoint ¶
func (*Config) GetTokenEndpoint ¶
func (*Config) GetUserinfoEndpoint ¶
func (*Config) GetVerifierMethod ¶
GetVerifierMethod retrieves the verifier method (ccm_s256 or nonce)
type OpenidConfiguration ¶
type OpenidConfiguration struct { AuthorizationEndpoint string `json:"authorization_endpoint"` CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"` Issuer string `json:"issuer"` JwksURI string `json:"jwks_uri"` TokenEndpoint string `json:"token_endpoint"` UserinfoEndpoint string `json:"userinfo_endpoint"` }
OpenidConfiguration represents an OpenID configuration (.../.well-known/openid-configuration)
Click to show internal directories.
Click to hide internal directories.