-
Notifications
You must be signed in to change notification settings - Fork 453
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
Linkedin OAuth2 401 Not Authorized problem #137
Comments
Can this be related: http://developer.linkedin.com/thread/2233? |
Is that |
Hi. In streamclient.php, I put a die() after the file_get_contents function and I see that there is a warning: Warning: file_get_contents(https://api.linkedin.com/v1/people/~?format=json&oauth2_access_token=AQXgKu5BUmWdSNZAivq-uMeh4AL1CZgpL3nX36h9vYJYruGUsTeRqpuc_cdK-hy3UscOXfKJUd7wZ2p36A4VcRYrhhIF6EIQiCZ6cCFPI6VUNrH1kmiaN6Q68cObrvoBrUeNVjk5uatB53dSAuCbyMJWaTBev1vRKY5n2TvBM30FbYHeTKQ) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in /var/www/vhosts/..../httpdocs/public/test/src/OAuth/Common/Http/Client/StreamClient.php on line 57 The url does not have & amp;, I guess that is from the output of the php exception handler.... As for the link:
Thanks again, :) Roland |
Hi, Thanks for your kind response. :) |
Closed because you have fixed the issue :) |
We also have the same problems authenticating with LinkedIn and we are getting the same error's. We are trying to migrate from the Zend framework oauth 1 libary to this one but we also have this issue with "Not Authorized problem". We tried 3 different LinkedIn accounts and 2 out of 3 have this problem. And the old Zend version is still working with the same users. While testing I implemented a version of LinkedIn oauth1 class based on the Twitter version like this one and that works like a charm https://gist.github.com/cmodijk/7445418. But if I register this in the ServiceFactory it won't get an instance because it checks the Oauth2 class first... |
@cmodijk: |
@aristotelesweb: |
stupid clevers make life hard for us too. Cant find any solution anyway. |
Hi,
I used the library for 1 month and it worked great! Thanks for making it. :)
Unfortunately, since november the 1st, it stopped working. To check whether it is a problem of my own code. I downloaded the library again, deployed it on the server and tested the linkedin example.
When I am logged in on linkedin the example is working fine. If i'm not logged in on linkedin, I see the "Accept page" of linkedin, I click on Accept and I am redirected to the example. Then I get the following error:
Perhaps Linkedin has changed something? Do you have the same problem?
Thanks in advance,
Kind Regards,
Roland
The text was updated successfully, but these errors were encountered: