Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoogleOAuth ¶
func NewGoogleOAuth(conf oauth2.Config, httpAdapter adapter.HTTPAdapter, service service.CredentialService, landing string) handler.CredentialHandler
NewGoogleOAuth new instance of CredentialHandler using google OAuth2
Types ¶
type UserInfo ¶
type UserInfo struct {
ID string `json:"id"`
Email string `json:"email"`
VerifiedEmail bool `json:"verified_email"`
Name string `json:"name"`
GivenName string `json:"given_name"`
FamilyName string `json:"family_name"`
Picture string `json:"picture"`
Locale string `json:"locale"`
}
UserInfo data model from google
Click to show internal directories.
Click to hide internal directories.