Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
7782f6ac
Commit
7782f6ac
authored
Sep 21, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retrieving email address from linked in
parent
42236777
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
LinkedInOAuthLoginFP.java
cmsWebApp/src/performa/form/LinkedInOAuthLoginFP.java
+2
-2
LinkedInOAuthLoginHandler.java
cmsWebApp/src/performa/form/LinkedInOAuthLoginHandler.java
+2
-2
No files found.
cmsWebApp/src/performa/form/LinkedInOAuthLoginFP.java
View file @
7782f6ac
...
@@ -22,7 +22,7 @@ public class LinkedInOAuthLoginFP extends BaseOAuthLoginFP
...
@@ -22,7 +22,7 @@ public class LinkedInOAuthLoginFP extends BaseOAuthLoginFP
public
static
final
String
LINKEDIN_APP_OAUTH_URL
=
"https://www.linkedin.com/oauth/v2/authorization"
;
public
static
final
String
LINKEDIN_APP_OAUTH_URL
=
"https://www.linkedin.com/oauth/v2/authorization"
;
public
static
final
String
LINKEDIN_ACCESS_TOKEN_URL
=
"https://www.linkedin.com/oauth/v2/accessToken"
;
public
static
final
String
LINKEDIN_ACCESS_TOKEN_URL
=
"https://www.linkedin.com/oauth/v2/accessToken"
;
public
static
final
String
LINKEDIN_PROFILE_FROM_TOKEN_URL
=
"https://api.linkedin.com/v1/people/~"
;
public
static
final
String
LINKEDIN_PROFILE_FROM_TOKEN_URL
=
"https://api.linkedin.com/v1/people/~
:(id,first-name,last-name,email-address)
"
;
@Override
@Override
public
String
getOAuthLoginURL
(
SubmissionDetails
submission
,
String
token
)
public
String
getOAuthLoginURL
(
SubmissionDetails
submission
,
String
token
)
...
@@ -34,7 +34,7 @@ public class LinkedInOAuthLoginFP extends BaseOAuthLoginFP
...
@@ -34,7 +34,7 @@ public class LinkedInOAuthLoginFP extends BaseOAuthLoginFP
return
LINKEDIN_APP_OAUTH_URL
return
LINKEDIN_APP_OAUTH_URL
+
HTTPRequestDetails
.
getParamStringURL
(
CollectionUtils
.
mapEntry
(
"client_id"
,
appId
)
+
HTTPRequestDetails
.
getParamStringURL
(
CollectionUtils
.
mapEntry
(
"client_id"
,
appId
)
.
mapEntry
(
"redirect_uri"
,
callbackURL
)
.
mapEntry
(
"redirect_uri"
,
callbackURL
)
.
mapEntry
(
"scope"
,
"r_basicprofile"
)
.
mapEntry
(
"scope"
,
"r_basicprofile
,r_emailaddress
"
)
.
mapEntry
(
"response_type"
,
"code"
)
.
mapEntry
(
"response_type"
,
"code"
)
.
mapEntry
(
"state"
,
token
).
toMap
());
.
mapEntry
(
"state"
,
token
).
toMap
());
}
}
...
...
cmsWebApp/src/performa/form/LinkedInOAuthLoginHandler.java
View file @
7782f6ac
...
@@ -56,9 +56,9 @@ public class LinkedInOAuthLoginHandler extends BaseOAuthLoginHandler
...
@@ -56,9 +56,9 @@ public class LinkedInOAuthLoginHandler extends BaseOAuthLoginHandler
loginInfo
.
setId
(
json
.
getString
(
"id"
));
loginInfo
.
setId
(
json
.
getString
(
"id"
));
loginInfo
.
setFirstName
(
json
.
getString
(
"firstName"
));
loginInfo
.
setFirstName
(
json
.
getString
(
"firstName"
));
if
(
json
.
has
(
"email"
))
if
(
json
.
has
(
"email
Address
"
))
{
{
loginInfo
.
setEmail
(
json
.
getString
(
"email"
));
loginInfo
.
setEmail
(
json
.
getString
(
"email
Address
"
));
}
}
if
(
json
.
has
(
"lastName"
))
if
(
json
.
has
(
"lastName"
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment