Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type IDTokenClaims ¶
type IDTokenClaims struct { Iss string `json:"iss"` Sub string `json:"sub"` Aud string `json:"aud"` Exp int `json:"exp"` Iat int `json:"iat"` AtHash string `json:"at_hash"` CHash string `json:"c_hash"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` Groups []string `json:"groups"` Name string `json:"name"` PreferredUsername string `json:"preferred_username"` }
IDTokenClaims is the claims extract from the IDToken.
type UserInfo ¶
type UserInfo struct { IDTokenClaims *IDTokenClaims `json:"id_token_claims,omitempty"` IDToken string `json:"id_token"` RefreshToken string `json:"refresh_token"` }
UserInfo includes information about the user identity It holds the IDTokenClaims, IDToken and RefreshToken for the user
func NewUserInfo ¶
func NewUserInfo(itc *IDTokenClaims, idToken string, refreshToken string) UserInfo
Click to show internal directories.
Click to hide internal directories.