oidc

package
v1.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*config.OIDC
	// contains filtered or unexported fields
}

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) Backends added in v1.9.0

func (c *Config) Backends() map[string]http.RoundTripper

func (*Config) Data added in v1.7.0

func (c *Config) Data() (*OpenidConfiguration, error)

func (*Config) GetAuthorizationEndpoint

func (c *Config) GetAuthorizationEndpoint() (string, error)

func (*Config) GetIssuer

func (c *Config) GetIssuer() (string, error)

func (*Config) GetTokenEndpoint

func (c *Config) GetTokenEndpoint() (string, error)

func (*Config) GetUserinfoEndpoint

func (c *Config) GetUserinfoEndpoint() (string, error)

func (*Config) GetVerifierMethod

func (c *Config) GetVerifierMethod() (string, error)

GetVerifierMethod retrieves the verifier method (ccm_s256 or nonce)

func (*Config) JWKS added in v1.7.0

func (c *Config) JWKS() *jwk.JWKS

func (*Config) Unmarshal added in v1.7.0

func (c *Config) Unmarshal(rawJSON []byte) (interface{}, error)

type Configs

type Configs map[string]*Config

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL