Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationServerMetadata ¶
type AuthorizationServerMetadata struct {
// The authorization server's issuer identifier, which is a URL.
// Contrary to RFC 8414, this is not checked to be using the "https" scheme.
Issuer string `json:"issuer"`
// URL of the authorization server's authorization endpoint.
AuthorizationEndpoint string `json:"authorization_endpoint"`
// URL of the authorization server's token endpoint.
TokenEndpoint string `json:"token_endpoint"`
// JSON array containing a list of Proof Key for Code Exchange (PKCE) code challenge methods supported by this
// authorization server. If omitted, the authorization server does not support PKCE.
// See RFC 7636, Section 4.3 for valid values:
// https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"`
}
AuthorizationServerMetadata represents a subset of the metadata provided by an OAuth 2.0 Authorization Server. See RFC 8414, Section 2 for the full specification: https://datatracker.ietf.org/doc/html/rfc8414#section-2
func GetAuthorizationServerMetadata ¶
func GetAuthorizationServerMetadata(ctx context.Context, authorizationServerURL string) (*AuthorizationServerMetadata, error)
GetAuthorizationServerMetadata retrieves the OAuth 2.0 authorization server's metadata from the well-known endpoint.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package authorizationcode provides OAuth2 authorization code flow authentication for gRPC connections.
|
Package authorizationcode provides OAuth2 authorization code flow authentication for gRPC connections. |
|
Package clientcredentials provides OAuth2 client credentials flow authentication for gRPC connections.
|
Package clientcredentials provides OAuth2 client credentials flow authentication for gRPC connections. |
Click to show internal directories.
Click to hide internal directories.