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 SSOResponse
- type TokenRequest
- type TokenResponse
- type UserResponse
- type UserResponsePersonal
- type VatsimAccessToken
- type VatsimDetails
- type VatsimDetailsRating
- type VatsimResponse
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 Result ¶
type Result struct { UserResponse UserResponse // contains filtered or unexported fields }
type SSOResponse ¶
type TokenRequest ¶
type TokenRequest struct { GrantType string `form:"grant_type"` ClientID string `form:"client_id"` ClientSecret string `form:"client_secret"` Code string `form:"code"` RedirectURI string `form:"redirect_uri"` CodeVerifier string `form:"code_verifier"` ResponseType string `form:"response_type"` Scope []string `form:"scope"` }
type TokenResponse ¶
type TokenResponse struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` TokenType string `json:"token_type"` IdToken string `json:"id_token"` RefreshToken string `json:"refresh_token"` CodeChallenge string `json:"code_challenge"` CodeChallengeMethod string `json:"code_challenge_method"` }
type UserResponse ¶
type UserResponse struct { CID string `json:"cid"` Personal UserResponsePersonal `json:"personal"` Vatsim VatsimDetails `json:"vatsim"` }
type UserResponsePersonal ¶
type VatsimAccessToken ¶
type VatsimAccessToken struct {
AccessToken string `json:"access_token"`
}
type VatsimDetails ¶
type VatsimDetails struct {
Rating VatsimDetailsRating `json:"rating"`
}
type VatsimDetailsRating ¶
type VatsimResponse ¶
type VatsimResponse struct {
Data UserResponse `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.