Documentation ¶
Index ¶
- type Config
- 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 { Message string `json:"message"` Type string `json:"type"` Code uint32 `json:"Code"` FbtraceId string `json:"fbtrace_id"` } `json:"error"` Id int `json:"id"` Address struct { City string `json:"city"` CityId uint32 `json:"city_id"` Country string `json:"country"` CountryCode string `json:"country_code"` Latitude float32 `json:"latitude"` LocatedIn int `json:"located_in"` Name string `json:"name"` Region string `json:"region"` RegionId uint32 `json:"region_id"` State string `json:"state"` Street string `json:"street"` Zip string `json:"zip"` } `json:"address"` Age_range struct { Max uint32 `json:"max"` Min uint32 `json:"min"` } `json:"age_range"` Birthday string `json:"birthday"` Context struct { Context string `json:"context"` } `json:"context"` Email string `json:"email"` EmployeeNumber string `json:"employee_number"` FavoriteAthletes []struct { Id string `json:"id"` Description string `json:"description"` Name string `json:"name"` } `json:"favorite_athletes"` FavoriteTeams []struct { Id string `json:"id"` Description string `json:"description"` Name string `json:"name"` } `json:"favorite_teams"` FirstName string `json:"first_name"` Gender string `json:"gender"` Hometown []struct { Id string `json:"id"` About string `json:"about"` Name string `json:"name"` } `json:"hometown"` InspirationalPeople []struct { Id string `json:"id"` Description string `json:"description"` Name string `json:"name"` } `json:"inspirational_people"` Installed bool `json:"installed"` InterestedIn []string `json:"interested_in"` LastName string `json:"last_name"` Location struct { Id string `json:"id"` About string `json:"about"` Name string `json:"name"` } `json:"location"` MeetingFor []string `json:"meeting_for"` MiddleName string `json:"middle_name"` Name string `json:"name"` NameFormat string `json:"name_format"` ProfilePic string `json:"profile_pic"` PublicKey string `json:"public_key"` Quotes string `json:"quotes"` Sports []struct { Id string `json:"id"` Description string `json:"description"` Name string `json:"name"` } `json:"sports"` }
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.