oauth - LinkedIn OAuth2: "Unable to verify access token" -


This works if and only when the user is signed in to LinkedIn when creating OAuth2 < / P>

If the user is not signed in, we get an error.

Sequence of our actions:

  • Fresh access token
  • Using the access token, the API endpoint https: // api. Postedin.com/v1/people/\~

After this we receive 401 with the following content:

  {"ErrorCode": 0, "message": "Unable to verify access token", "requestId": "C0DUCX81SA", "Sometimes after some time has elapsed, try again with the same access token 200. Never.  

If The user logs in LinkedIn during the "401 period", then the access tokens previously received magically started working.

How can I solve it? Because this is a problem on LinkedIn.

is one

We tried the cookie settings, wait for the period before our request etc.

We Linkin® [2] to Zotonic [1] are adding authentication, but now The non-working modules are left with.

[1]

Edit:

Someone in LinkedIn References to discussions.

I have tried all these suggestions:

Edit # 2:

The first time discussion on LinkedIn shows that I am not the only one with these stability issues. Something is going wrong in LinkedIn if the user has cleared the cookie or signed in LinkedIn during OAuth "Dance"

Update

For the solution, thanks Matthijs Bierman, see the answer below.

We used to talk on the phone, that you are running in the same problem LinkedIn does not accept the authentication header and expects the request parameter: oauth2_access_token .


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -