2021-07-17 16:29:50 +00:00
|
|
|
package constants
|
|
|
|
|
2022-01-17 06:02:13 +00:00
|
|
|
const (
|
2021-07-17 16:29:50 +00:00
|
|
|
// Ref: https://github.com/qor/auth/blob/master/providers/google/google.go
|
2021-12-17 15:55:07 +00:00
|
|
|
// deprecated and not used. instead we follow open id approach for google login
|
2021-07-17 16:29:50 +00:00
|
|
|
GoogleUserInfoURL = "https://www.googleapis.com/oauth2/v3/userinfo"
|
|
|
|
// Ref: https://github.com/qor/auth/blob/master/providers/facebook/facebook.go#L18
|
2021-09-04 22:27:29 +00:00
|
|
|
FacebookUserInfoURL = "https://graph.facebook.com/me?fields=id,first_name,last_name,name,email,picture&access_token="
|
2021-07-17 16:29:50 +00:00
|
|
|
// Ref: https://docs.github.com/en/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps#3-your-github-app-accesses-the-api-with-the-users-access-token
|
|
|
|
GithubUserInfoURL = "https://api.github.com/user"
|
2022-07-17 07:02:01 +00:00
|
|
|
// Get github user emails when user info email is empty Ref: https://stackoverflow.com/a/35387123
|
2022-09-14 05:14:01 +00:00
|
|
|
GithubUserEmails = "https://api.github.com/user/emails"
|
2022-07-17 06:37:17 +00:00
|
|
|
|
2022-06-06 16:38:32 +00:00
|
|
|
// Ref: https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api
|
|
|
|
LinkedInUserInfoURL = "https://api.linkedin.com/v2/me?projection=(id,localizedFirstName,localizedLastName,emailAddress,profilePicture(displayImage~:playableStreams))"
|
|
|
|
LinkedInEmailURL = "https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))"
|
2022-08-14 18:19:48 +00:00
|
|
|
|
|
|
|
TwitterUserInfoURL = "https://api.twitter.com/2/users/me?user.fields=id,name,profile_image_url,username"
|
2021-07-17 16:29:50 +00:00
|
|
|
)
|