-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can anyone get the authentication to work at all? #111
Comments
Use this: curl -X POST --http1.1 "https://www.linkedin.com/oauth/v2/accessToken" --cookie "X-Csrf-Token: 987654321" -d "grant_type=authorization_code&code=authorizationcodehere&redirect_uri=http%3A%2F%2Flocalhost%2Fcode&client_id=client_id&client_secret=client_secret" -H "Content-Type: application/x-www-form-urlencoded" |
@shroffshivangi |
It's same as the state that you put in the previous step. |
Hello, invalid_request","error_description":"Unable to retrieve access token: a ppid/redirect uri/code verifier does not match authorization code. Or authorizat ion code expired. Or external member binding exists" please help me out about this problem. |
@shroffshivangi |
You can use any redirect url, it should just be a valid one. If the redirect uri is https://www.google.com - Step 1 would be something like this:
Note: the scope is what permissions you want your application to have. |
@shroffshivangi |
Hey @shroffshivangi , |
Seems like the move to OAuth 2 by LinkedIn has totally broken this library. Even if you follow the instructions and manually copy the authorization code, it fails to retrieve the token and raises an exception.
Is this the same for everyone? Or am I just too stupid to get it to work. Any help is gratefully appreciated.
raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.linkedin.com/uas/oauth2/accessToken
The text was updated successfully, but these errors were encountered: