Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

Oauth wrong credentials (works locally, fails on build server)

$
0
0

Hi,

 

I can use the Agent API successfully from my local machine, but when I run exactly the same script on our build server then I'm getting an Unauthorized response.

 

Request (obfuscated with asterisks where appropriate) and response below.

 

Can you help please?  I guessed that this could be a timestamp-related issue, but have tried with a couple of different timezone options on the server (Europe/London and UTC) and get the same Unauthorized response for both.

 

"POST /api/account/********/agentSession/?v=1 HTTP/1.1\r\nAccept: application/xml\r\nContent-Type: application/xml\r\nUser-Agent: OAuth gem v0.4.7\r\nContent-Length: 118\r\nAuthorization: OAuth oauth_body_hash=\"*********\", oauth_consumer_key=\"*********\", oauth_nonce=\"*********\", oauth_signature=\"*********\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1367228379\", oauth_token=\"********\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: server.lon.liveperson.net\r\n\r\n"

"    <loginData>\n        <userName>******</userName>\n        <password>*******</password>\n    </loginData>\n"

 

 

"HTTP/1.1 401 Unauthorized\r\n"

"Connection: close\r\n"

"Date: Mon, 29 Apr 2013 09:39:39 GMT\r\n"

"Server: Microsoft-IIS/6.0\r\n"

"WWW-Authenticate: Basic realm=\"server.lon.liveperson.net\"\r\n"

"P3P: CP=\"NON BUS INT NAV COM ADM CON CUR IVA IVD OTP PSA PSD TEL SAM\", policyref=\"http://server.iad.liveperson.net/w3c/p3p.xml\"\r\n"

"X-Powered-By: ASP.NET\r\n"

"Content-Type: application/xml\r\n"

"Content-Length: 179\r\n"

"\r\n"

 

 

<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>

<error>

  <time>2013-04-29T05:39:39.838-04:00</time>

  <message>Wrong credentials</message>

  <internalCode>10</internalCode>

</error>"

 

thanks,

 

John

 


Viewing all articles
Browse latest Browse all 2324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>