Documentation
¶
Index ¶
- type Config
- type Metadata
- type Source
- type UserInfo
- type Verifier
- func (prov *Verifier) GetOAuth2Identity(ctx context.Context, accessToken string) (iden *identity.IdentityData, verifierData *identity.VerifierData, err error)
- func (prov *Verifier) GetOAuth2URL(state string) string
- func (prov *Verifier) HandleOAuth2Callback(ctx context.Context, code string) (token *oauth2.Token, err error)
- func (prov *Verifier) Info() identity.VerifierInfo
- func (prov *Verifier) NormalizeIdentity(idn string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserInfo ¶
type UserInfo struct { Error struct { Code int `json:"code"` Message string `json:"message"` Status string `json:"status"` } `json:"error"` ResourceName string `json:"resourceName"` Etag string `json:"etag"` Metadata struct { Sources []struct { Type string `json:"type"` Id string `json:"id"` Etag string `json:"etag"` ProfileMetadata struct { ObjectType string `json:"objectType"` UserTypes []string `json:"userTypes"` } `json:"profileMetadata"` } `json:"sources"` ObjectType string `json:"objectType"` } `json:"metadata"` Locales []struct { Metadata Metadata `json:"metadata"` Value string `json:"value"` } `json:"locales"` Names struct { Metadata Metadata `json:"metadata"` DisplayName string `json:"displayName"` FamilyName string `json:"familyName"` GivenName string `json:"givenName"` DisplayNameLastFirst string `json:"displayNameLastFirst"` } `json:"names"` CoverPhotos []struct { Metadata Metadata `json:"metadata"` Url string `json:"url"` Default bool `json:"default"` } `json:"coverPhotos"` Photos []struct { Metadata Metadata `json:"metadata"` Url string `json:"url"` } `json:"photos"` Birthdays []struct { Metadata Metadata `json:"metadata"` Date []struct { Year int `json:"year"` Month int `json:"month"` Day int `json:"day"` } `json:"date"` } `json:"birthdays"` EmailAddresses []struct { Metadata Metadata `json:"metadata"` Value string `json:"value"` } `json:"emailAddresses"` Urls []struct { Metadata Metadata `json:"metadata"` Value string `json:"value"` Type string `json:"type"` FormattedType string `json:"formattedType"` } `json:"urls"` Organizations []struct { Metadata Metadata `json:"metadata"` Type string `json:"type"` FormattedType string `json:"formattedType"` EndDate struct { Year int `json:"year"` Month int `json:"month"` Day int `json:"day"` } `json:"endDate"` Current bool `json:"current"` Name string `json:"name"` } `json:"organizations"` AgeRanges []struct { Metadata Metadata `json:"metadata"` AgeRange string `json:"ageRange"` } `json:"ageRanges"` }
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func (*Verifier) GetOAuth2Identity ¶
func (prov *Verifier) GetOAuth2Identity(ctx context.Context, accessToken string) (iden *identity.IdentityData, verifierData *identity.VerifierData, err error)
func (*Verifier) GetOAuth2URL ¶
func (*Verifier) HandleOAuth2Callback ¶
func (*Verifier) Info ¶
func (prov *Verifier) Info() identity.VerifierInfo
func (*Verifier) NormalizeIdentity ¶
Click to show internal directories.
Click to hide internal directories.