Well After a long search in google I having to post the very old issue here , Please tell me where I am doing mistake my all code working fine till
access token
I am receiving access token successfully but the issue when I send
access token to get user details
Version 1.0 of Linked In API is no longer supported since May 1, 2019. You may use v2 instead.
The Authorization Code Flow has the following steps:
Configure your application to get theClient IDandClient Secret.
Your application directs the browser to LinkedIn's OAuth 2.0 authorization page where the member authenticates. After authentication, LinkedIn's authorization server passes an authorization code to your application.
Your application sends this code to LinkedIn and LinkedIn returns an access token.
Your application uses this token to call APIs, including an Authorization header in the HTTP call to LinkedIn's API.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
3 Posts
access Token Linked In authentication user data ASP.Net LinkedIn API
Mar 09, 2020 07:17 AM|SyedAzy|LINK
Well After a long search in google I having to post the very old issue here , Please tell me where I am doing mistake my all code working fine till access token
I am receiving access token successfully but the issue when I send access token to get user details
here is my code
On another page load
---Till here code is working perfectly but in GetLinkeduserProfile(obj.access_token); I am recieving errors
some time The remote server returned an error: (401) Unauthorized.
and some time 403
Please Experts , Help me and tell me where I am making mistake
Participant
1320 Points
491 Posts
Re: access Token Linked In authentication user data ASP.Net LinkedIn API
Mar 10, 2020 06:26 AM|jiadongm|LINK
Hi SyedAzy,
Version 1.0 of Linked In API is no longer supported since May 1, 2019. You may use v2 instead.
The Authorization Code Flow has the following steps:
Authorization
header in the HTTP call to LinkedIn's API.For more details, refer to the document:
https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context#step-1-configure-your-application
Best Regards,
Jiadong Meng
None
0 Points
3 Posts
Re: access Token Linked In authentication user data ASP.Net LinkedIn API
Mar 18, 2020 06:07 AM|SyedAzy|LINK
Well the link you posted is very helpful but it resolve by simple step.
I just changed the following request below to get the user detail and all is working fine.
but in the end , I want to thanks because your diverted link was very helpful.