Hi,
I am new to the forum and haven't been able to find any messages relative to an issue I am having in getting started with using the REST API.
The main problem is that I have been unsuccessful in achieving authorization and moving out of the null user space. We have SSO working to connect Lithium with our web site and it works perfectly. When I take the same token string that authenticates my username on the Lithium site, the authentication fails.
I suspect that this is just some sort of typo or misreading of the API doc, but I would be incredibly grateful for any suggestions or working code snippets that could help me move forward.
Thanks in advance,
Bob
Hi Bob,
make sure you are passing the token string using the sso.authentication_token query parameter --- the call should look something like this:
http://community.lithium.com/community-name/restapi/vc/authentication/sessions/login?sso.authentication_token=~aj340iw03riaw3ria9pw3ir0 9aw3ir90awillzxdvmklzsd
then the response you should get back should look something like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<response status="success">
<value type="string">DMWmkU2ve4XKeuhc54YJolkFqfzas4kICTA4ID_t0RA.</value>
</response>
One other thing to note is that this call is required to be made via a HTTP POST (not a HTTP GET), so make sure you send your request this way. I hope this helps!
-Doug
Hi Doug,
I wanted to thank you for your help.
Your reminder that I needed to use POST did the trick.
Thanks again,
Bobv