discovery

package
v0.0.0-...-1f03736 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Options Options
}

func NewClient

func NewClient(options Options) *Client

func (*Client) GetOpenidConfiguration

func (client *Client) GetOpenidConfiguration() (OpenidConfiguration, error)

type Discoverer

type Discoverer interface {
	GetOpenidConfiguration() (OpenidConfiguration, error)
}

type JsonWebKey

type JsonWebKey struct {
	Kty string   `json:"kty"`
	Alg string   `json:"alg"`
	Kid string   `json:"kid"`
	Use string   `json:"use"`
	N   string   `json:"n"`
	E   string   `json:"e"`
	X5c []string `json:"x5c"`
}

type JsonWebKeySet

type JsonWebKeySet struct {
	Keys []JsonWebKey `json:"keys"`
}

type OpenidConfiguration

type OpenidConfiguration struct {
	Issuer                             string       `json:"issuer"`
	JwksUri                            string       `json:"jwks_uri"`
	AuthorizationEndpoint              string       `json:"authorization_endpoint"`
	TokenEndpoint                      string       `json:"token_endpoint"`
	UserinfoEndpoint                   string       `json:"userinfo_endpoint"`
	EndSessionEndpoint                 string       `json:"end_session_endpoint"`
	CheckSessionIframe                 string       `json:"check_session_iframe"`
	RevocationEndpoint                 string       `json:"revocation_endpoint"`
	IntrospectionEndpoint              string       `json:"introspection_endpoint"`
	FrontchannelLogoutSupported        bool         `json:"frontchannel_logout_supported"`
	FrontchannelLogoutSessionSupported bool         `json:"frontchannel_logout_session_supported"`
	BackchannelLogoutSupported         bool         `json:"backchannel_logout_supported"`
	BackchannelLogoutSessionSupported  bool         `json:"backchannel_logout_session_supported"`
	ScopesSupported                    []string     `json:"scopes_supported"`
	ClaimsSupported                    []string     `json:"claims_supported"`
	GrantTypesSupported                []string     `json:"grant_types_supported"`
	ResponseTypesSupported             []string     `json:"response_types_supported"`
	ResponseModesSupported             []string     `json:"response_modes_supported"`
	TokenEndpointAuthMethodsSupported  []string     `json:"token_endpoint_auth_methods_supported"`
	SubjectTypesSupported              []string     `json:"subject_types_supported"`
	IdTokenSigningAlgValuesSupported   []string     `json:"id_token_signing_alg_values_supported"`
	CodeChallengeMethodsSupported      []string     `json:"code_challenge_methods_supported"`
	JsonWebKeySet                      []JsonWebKey `json:"-"`
}

type Options

type Options struct {
	Authority string
}

Jump to

Keyboard shortcuts

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