Documentation ¶
Index ¶
- func GetAuthorize(c *gin.Context)
- func GetCallback(c *gin.Context)
- func GetCerts(c *gin.Context)
- func GetInfo(c *gin.Context)
- func GetOIDCConfig(c *gin.Context)
- func GetRefresh(c *gin.Context)
- func PostToken(c *gin.Context)
- type AuthorizeRequest
- type OIDCConfig
- type RefreshResponse
- type Result
- type TokenRequest
- type TokenResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorize ¶
func GetCallback ¶
func GetOIDCConfig ¶
func GetRefresh ¶
Types ¶
type AuthorizeRequest ¶
type AuthorizeRequest struct { ClientId string `form:"client_id"` RedirectURI string `form:"redirect_uri"` ResponseType string `form:"response_type"` Scope string `form:"scope" validation:"-"` CodeChallengeMethod string `form:"code_challenge_method"` CodeChallenge string `form:"code_challenge"` State string `form:"state"` }
type OIDCConfig ¶
type OIDCConfig struct { Issuer string `json:"issuer"` AuthorizationEndpoint string `json:"authorization_endpoint"` TokenEndpoint string `json:"token_endpoint"` UserinfoEndpoint string `json:"userinfo_endpoint"` JwksUri string `json:"jwks_uri"` GrantTypesSupported []string `json:"grant_types_supported"` ResponseTypesSupported []string `json:"response_types_supported"` IdTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"` TokenEndpointAuthSigningAlgValuesSupported []string `json:"token_endpoint_auth_signing_alg_values_supported"` CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"` RequestParameterSupported bool `json:"request_parameter_supported"` RequestUriParameterSupported bool `json:"request_uri_parameter_supported"` ScopesSupported []string `json:"scopes_supported"` ClaimsSupported []string `json:"claims_supported"` }
type RefreshResponse ¶
type TokenRequest ¶
type TokenResponse ¶
type UserResponse ¶
type UserResponse struct {
CID int `json:"cid"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.