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
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.
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.
The text was updated successfully, but these errors were encountered: