You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linkedin documentation to exchange the token from code.
curl -X POST https://www.linkedin.com/oauth/v2/accessToken?grant_type=authorization_code&code={authorization_code_from_step2_response}&redirect_uri={your_callback_url}&client_id={your_client_id}&client_secret={your_client_secret}' \
-H 'Content-Type: application/x-www-form-urlencoded'
Actual request
Issue I found
The linkedin's /accessToken endpoint requires to provide the client_id and secret. But actual request did not send the client keys.
Thus I am getting
Is this the next-auth issue or openid issue? Please help. Thank you
How to reproduce
Go to dbnews.vercel.app and click login.
And click "Linkedin" button.
Environment
System:
OS: Linux 5.15 Ubuntu 20.04.4 LTS (Focal Fossa)
CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
Memory: 168.41 MB / 15.54 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
Browsers:
Chrome: 101.0.4951.64
Chromium: 104.0.5112.101
Firefox: 104.0
npmPackages:
next: ^12.2.2 => 12.2.2
next-auth: ^4.10.2 => 4.10.3
react: ^17.0.2 => 17.0.2
Reproduction URL
dbnews.vercel.app
Describe the issue
My linkedin provider
Linkedin documentation to exchange the token from code.
Actual request
Issue I found
The linkedin's /accessToken endpoint requires to provide the client_id and secret. But actual request did not send the client keys.
Thus I am getting
Is this the next-auth issue or openid issue? Please help. Thank you
How to reproduce
Go to dbnews.vercel.app and click login.
And click "Linkedin" button.
Expected behavior
Actual request to https://www.linkedin.com/oauth/v2/accessToken should include client_id and client_secret in its body.
Like this one is successful.
The text was updated successfully, but these errors were encountered: