Documentation ¶
Index ¶
- type AccessToken
- type AuthorizeRequest
- type Client
- type ClientRegister
- type Consent
- type CreateAccessToken
- type CreateAuthorizationCode
- type CreateConsent
- type CreateRefreshToken
- type CreateTokens
- type DeleteAccessTokens
- type GetAuthorizationCode
- type LoginRequest
- type OAuthRegisterClient
- type OAuthRevoke
- type Profile
- type RawRefreshToken
- type RefreshToken
- type RefreshTokens
- type RegisterRequest
- type RevokeAccessTokens
- type RevokeConsent
- type RevokeRefreshTokens
- type RevokeTokens
- type TokenRequest
- type UpdateProfile
- type User
- type UserConsents
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AuthorizeRequest ¶
type AuthorizeRequest struct { ResponseType string `form:"response_type"` ClientID string `form:"client_id"` RedirectURI string `form:"redirect_uri"` Scope string `form:"scope"` State string `form:"state"` CodeChallengeMethod string `form:"code_challenge_method"` CodeChallenge string `form:"code_challenge"` }
type Client ¶
type Client struct { ID string `json:"id"` Secret string `json:"secret"` Name string `json:"name"` URL string `json:"url"` LogoURI string `json:"logo_uri"` Scope []string `json:"scope"` RedirectURIs []string `json:"redirect_uris"` TokenEndpointAuthMethod string `json:"token_endpoint_auth_method"` GrantTypes []string `json:"grant_types"` ResponseTypes []string `json:"response_types"` }
type ClientRegister ¶
type ClientRegister struct { ID string `json:"id" binding:"required"` Secret string `json:"secret" binding:"required"` Name string `json:"name" binding:"required"` URL string `json:"url"` LogoURI string `json:"logo_uri"` Scope []string `json:"scope" binding:"required"` RedirectURIs []string `json:"redirect_uris" binding:"required"` TokenEndpointAuthMethod string `json:"token_endpoint_auth_method"` GrantTypes []string `json:"grant_types"` ResponseTypes []string `json:"response_types"` }
type CreateAccessToken ¶
type CreateAuthorizationCode ¶
type CreateConsent ¶
type CreateRefreshToken ¶
type CreateTokens ¶
type DeleteAccessTokens ¶
type GetAuthorizationCode ¶
type GetAuthorizationCode struct {
Code string
}
type LoginRequest ¶
type OAuthRegisterClient ¶
type OAuthRegisterClient struct { JWKs jwk.Set `json:"jwks"` ClientURI string `json:"client_uri"` JwksURI string `json:"jwks_uri"` LogoURI string `json:"logo_uri"` TokenEndpointAuthMethod string `json:"token_endpoint_auth_method"` Scope string `json:"scope" binding:"required"` RegisterSecret string ClientName string `json:"client_name"` SoftwareVersion string `json:"software_version"` SoftwareID string `json:"software_id"` ClientSecret string ClientID string TosURI string `json:"tos_uri"` PolicyURI string `json:"policy_uri"` ResponseTypes []string `json:"response_types" binding:"required"` GrantTypes []string `json:"grant_types" binding:"required"` RedirectURIs []string `json:"redirect_uris" binding:"required"` Contacts []string `json:"contacts"` }
type OAuthRevoke ¶
type RawRefreshToken ¶
type RefreshToken ¶
type RefreshTokens ¶
type RegisterRequest ¶
type RevokeAccessTokens ¶
type RevokeConsent ¶
type RevokeConsent struct {
ClientID string `form:"client_id" binding:"required"`
}
type RevokeRefreshTokens ¶
type RevokeTokens ¶
type TokenRequest ¶
type TokenRequest struct { GrantType string `form:"grant_type"` Code string `form:"code"` RefreshToken string `form:"refresh_token"` RedirectURI string `form:"redirect_uri"` ClientID string `form:"client_id"` ClientSecret string `form:"client_secret"` Scope string `form:"scope"` CodeVerifier string `form:"code_verifier"` }
type UpdateProfile ¶
type UserConsents ¶
Click to show internal directories.
Click to hide internal directories.