Documentation ¶
Index ¶
Constants ¶
View Source
const PUBLIC_KEY_ENDPOINT = "https://api.sso.cateiru.com/v1/oauth/jwt/key"
View Source
const SSO_ENDPOINT = "https://sso.cateiru.com/sso/login"
View Source
const TOKEN_ENDPOINT = "https://api.sso.cateiru.com/v1/oauth/token"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claims ¶
type Claims struct { Name string `json:"name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` MiddleName string `json:"middle_name"` NickName string `json:"nick_name"` PreferredUserName string `json:"preferred_username"` Profile string `json:"profile"` Picture string `json:"picture"` Website string `json:"website"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` Gender string `json:"gender"` Birthdate string `json:"birthdate"` Zoneinfo string `json:"zoneinfo"` Locale string `json:"locale"` PhoneNumber string `json:"phone_number"` PhoneNumberVerified bool `json:"phone_number_verified"` UpdatedAt int64 `json:"updated_at"` ID string `json:"id"` Role string `json:"role"` Theme string `json:"theme"` Iat int64 `json:"iat"` AuthTime int64 `json:"auth_time"` jwt.StandardClaims }
func ValidateIDToken ¶
type TokenResponse ¶
type TokenResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` RefreshToken string `json:"refresh_token"` ExpiresIn int `json:"expires_in"` IDToken string `json:"id_token"` }
Click to show internal directories.
Click to hide internal directories.