Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationCode ¶
type AuthorizationCode struct { Code string `redis:"code" json:"code"` ClientID string `redis:"client_id" json:"client_id"` UserID string `redis:"user_id" json:"user_id"` RedirectURI string `redis:"redirect_uri" json:"redirect_uri"` Scope string `redis:"scope" json:"scope"` CreatedAt int `redis:"created_at" json:"created_at"` // PKCE CodeChallenge string `redis:"code_challenge" json:"code_challenge"` CodeChallengeMethod string `redis:"code_challenge_method" json:"code_challenge_method"` }
type AuthorizationCodeRequest ¶
type AuthorizationCodeRequest struct { ResponseType string `form:"response_type"` // required ClientID string `form:"client_id"` // required RedirectURI string `form:"client_id"` // optional Scope string `form:"scope"` // optional State string `form:"state"` // recommended CodeChallengeMethod string `form:"code_challenge_method"` // optional CodeChallenge string `form:"code_challenge_method"` // optional }
type AuthorizeError ¶
func (AuthorizeError) Error ¶
func (a AuthorizeError) Error() string
type ClientCredentials ¶
type ClientInformationResponse ¶
type ClientMetadata ¶
type ClientMetadata struct { RedirectURIs []string `json:"redirect_uris,omitempty"` TokenEndpointAuthMethod string `json:"token_endpoint_auth_method,omitempty"` GrantTypes []string `json:"grant_types,omitempty"` ResponseTypes []string `json:"response_types,omitempty"` ClientName string `json:"client_name,omitempty"` ClientURI string `json:"client_uri,omitempty"` LogoURI string `json:"logo_uri,omitempty"` Scope string `json:"scope,omitempty"` Contacts []string `json:"contacts,omitempty"` TosURI string `json:"tos_uri,omitempty"` PolicyURI string `json:"policy_uri,omitempty"` JwksURI string `json:"jwks_uri,omitempty"` JWKs jwk.Set `json:"jwks,omitempty"` SoftwareID string `json:"software_id,omitempty"` SoftwareVersion string `json:"software_version,omitempty"` }
type ClientRegistrationErrorResponse ¶
type RevocationRequest ¶
type RevocationRequest struct { Token string `json:"token"` TokenTypeHint string `json:"token_type_hint"` }
https://datatracker.ietf.org/doc/html/rfc7009#section-2.1 Token revocation
type TokenCodeError ¶
type TokenCodeError struct { Err string `json:"error"` Description string `json:"error_description,omitempty"` URI string `json:"error_uri,omitempty"` }
https://www.rfc-editor.org/rfc/rfc6749#section-5.2
func (TokenCodeError) Error ¶
func (t TokenCodeError) Error() string
type TokenCodeRequest ¶
type TokenCodeRequest struct { GrantType string `form:"grant_type"` // required Code string `form:"code"` // required RedirectURI string `form:"redirect_uri"` // optional ClientID string `form:"client_id"` // optional ClientSecret string `form:"client_secret"` CodeVerifier string `form:"code_verifier"` // optional BasicAuthUsername string BasicAuthPassword string }
type TokenResponse ¶
type VerboseError ¶
type VerboseError struct { Err string `json:"error"` Description string `json:"error_description"` URI string `json:"error_uri"` State string `json:"state"` }
Error container for all kinds of OAuth errors. https://www.rfc-editor.org/rfc/rfc6749#section-4.2.2.1
func (VerboseError) Error ¶
func (v VerboseError) Error() string
Click to show internal directories.
Click to hide internal directories.