Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCodeVerifier ¶
func GenerateCodeVerifier() string
Types ¶
type Client ¶
type Client interface {
AuthCodeURL(state, nonce, verifier string, opts ...ParameterOption) (string, error)
Exchange(code, verifier string, opts ...ParameterOption) (*TokenResponse, error)
}
type CodeChallengeMethod ¶
type CodeChallengeMethod string
const (
CodeChallengeMethodS256 CodeChallengeMethod = "S256"
)
type ParameterOption ¶
func WithAlternateRedirectURI ¶
func WithAlternateRedirectURI(redirectUri string) ParameterOption
func WithOpenidProviderIssuer ¶
func WithOpenidProviderIssuer(issuer string) ParameterOption
type ServerMetadata ¶
type ServerMetadata struct {
Issuer string `json:"issuer" yaml:"issuer"`
AuthorizationEndpoint string `json:"authorization_endpoint" yaml:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint" yaml:"token_endpoint"`
JwksURI string `json:"jwks_uri,omitempty" yaml:"jwks_uri"`
RegistrationEndpoint string `json:"registration_endpoint,omitempty" yaml:"registration_endpoint"`
ScopesSupported []string `json:"scopes_supported" yaml:"scopes_supported"`
ResponseTypesSupported []string `json:"response_types_supported" yaml:"response_types_supported"`
ResponseModesSupported []string `json:"response_modes_supported" yaml:"response_modes_supported"`
GrantTypesSupported []string `json:"grant_types_supported" yaml:"grant_types_supported"`
TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported" yaml:"token_endpoint_auth_methods_supported"`
TokenEndpointAuthSigningAlgValuesSupported []string `json:"token_endpoint_auth_signing_alg_values_supported" yaml:"token_endpoint_auth_signing_alg_values_supported"`
ServiceDocumentation string `json:"service_documentation,omitempty" yaml:"service_documentation"`
UILocalesSupported []string `json:"ui_locales_supported,omitempty" yaml:"ui_locales_supported"`
OPPolicyURI string `json:"op_policy_uri,omitempty" yaml:"op_policy_uri"`
OPTosURI string `json:"op_tos_uri,omitempty" yaml:"op_tos_uri"`
RevocationEndpoint string `json:"revocation_endpoint,omitempty" yaml:"revocation_endpoint"`
RevocationEndpointAuthMethodsSupported []string `json:"revocation_endpoint_auth_methods_supported,omitempty" yaml:"revocation_endpoint_auth_methods_supported"`
RevocationEndpointAuthSigningAlgValuesSupported []string `` /* 131-byte string literal not displayed */
IntrospectionEndpoint string `json:"introspection_endpoint,omitempty" yaml:"introspection_endpoint"`
IntrospectionEndpointAuthMethodsSupported []string `json:"introspection_endpoint_auth_methods_supported,omitempty" yaml:"introspection_endpoint_auth_methods_supported"`
IntrospectionEndpointAuthSigningAlgValuesSupported []string `` /* 137-byte string literal not displayed */
CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported" yaml:"code_challenge_methods_supported"`
}
OAuth2 Authorization Server Metadata See https://datatracker.ietf.org/doc/html/rfc8414
Click to show internal directories.
Click to hide internal directories.