v1

package
v0.0.0-...-df0fe4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorize

func GetAuthorize(c *gin.Context)

func GetCallback

func GetCallback(c *gin.Context)

func GetCerts

func GetCerts(c *gin.Context)

func GetInfo

func GetInfo(c *gin.Context)

func GetOIDCConfig

func GetOIDCConfig(c *gin.Context)

func GetRefresh

func GetRefresh(c *gin.Context)

func PostToken

func PostToken(c *gin.Context)

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 RefreshResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	TokenType   string `json:"token_type"`
}

type Result

type Result struct {
	UserResponse UserResponse
	// contains filtered or unexported fields
}

type SSOResponse

type SSOResponse struct {
	User *dbTypes.User `json:"user"`
}

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 UserResponsePersonal struct {
	FirstName string `json:"name_first"`
	LastName  string `json:"name_last"`
	FullName  string `json:"name_full"`
	Email     string `json:"email"`
}

type VatsimAccessToken

type VatsimAccessToken struct {
	AccessToken string `json:"access_token"`
}

type VatsimDetails

type VatsimDetails struct {
	Rating VatsimDetailsRating `json:"rating"`
}

type VatsimDetailsRating

type VatsimDetailsRating struct {
	ID    int    `json:"id"`
	Long  string `json:"long"`
	Short string `json:"short"`
}

type VatsimResponse

type VatsimResponse struct {
	Data UserResponse `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL