Skip to content
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

unauthorized_client #23

Open
GuillaumeDerivery opened this issue Feb 18, 2014 · 0 comments
Open

unauthorized_client #23

GuillaumeDerivery opened this issue Feb 18, 2014 · 0 comments

Comments

@GuillaumeDerivery
Copy link

HI !

Do you have any idea why every time the url accessToken returns "unauthorized_client" with a 401 code ?

This url is called in this method : getAccessToken:success:failure.
The permissions in my linkedIn Application are set correctly, as well as the API/Secret Key in the project sample.

I successfully get the authorization code with the login webview but the next url called right after it is the accessToken to retrieve the user token, and I get an error every time.

Here is the debug of the error:

Quering accessToken failed Error Domain=AFNetworkingErrorDomain Code=-1011 "Request failed: unauthorized (401)" UserInfo=0x8d52b60 {NSErrorFailingURLKey=https://www.linkedin.com/uas/oauth2/accessToken, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x8ae8340> { URL: https://www.linkedin.com/uas/oauth2/accessToken } { status code: 401, headers {
"Cache-Control" = "no-cache, no-store";
Connection = "keep-alive";
"Content-Encoding" = gzip;
"Content-Language" = "en-US";
"Content-Length" = 85;
"Content-Type" = "application/json;charset=UTF-8";
Date = "Tue, 18 Feb 2014 15:57:57 GMT";
Expires = "Thu, 01 Jan 1970 00:00:00 GMT";
Pragma = "no-cache";
Server = "Apache-Coyote/1.1";
"Set-Cookie" = "_lipt="delete me"; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/, _lipt=deleteMe; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; domain=.www.linkedin.com, lang="delete me"; Version=1; Domain=linkedin.com; Path=/; Expires=Thu, 01-Jan-1970 00:00:10 GMT, lang="v=2&lang=en-us"; Version=1; Domain=.linkedin.com; Path=/";
Vary = "Accept-Encoding";
"X-LI-UUID" = "zvpsOXLUEtfGhj+GCeH9tQ==";
"X-Li-Fabric" = "prod-lva1";
"X-Li-Pop" = "PROD-IDB2, PROD-IDB2";
} }, NSLocalizedDescription=Request failed: unauthorized (401)}

Don't hesitate to contact if you need some help or more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant