Skip to main content
Solved

getting error while hitting API 'remotelogout' via CURL PHP call

  • January 23, 2018
  • 10 replies
  • 326 views

nital
  • Contributor ⭐️⭐️
I wanted to use API remotelogout to logout user from Insided. I am using curl call to achieve so.
I am getting error :
: Uncaught exception 'inSidedApiException' with message 'This action is only available for fields:email,userid,oracle_sso_id,token_sso_id,openidconnect_sso_id,facebook_sso_id,janrain_sso_id,saml_sso_id,linkedin_sso_id,username

My url is :
https://api.insided.com/v1.1/user/remotelogout/email/rntest1@tomtom.com?apikey=N5WKK9J8J0R0QJXEMTK7&sig=zB%2BmbuwHZYPhtRXxGztjD2OjZr2b0w99t207YFVoJbo%3D

Please help me with this.

Thanks,
Nital Joshi

Best answer by Rens

Hi Nital, have you tried sending your request through the DELETE method (instead of GET), and did you URL-encode the email value (so, /rntest1%40tomtom.com instead of /rntest1@tomtom.com)?

Also, it's advised to test on staging first, and your API key/secret combination has to match the environment of course.

10 replies

Rens
  • inSided
  • Answer
  • January 23, 2018
Hi Nital, have you tried sending your request through the DELETE method (instead of GET), and did you URL-encode the email value (so, /rntest1%40tomtom.com instead of /rntest1@tomtom.com)?

Also, it's advised to test on staging first, and your API key/secret combination has to match the environment of course.

nital
  • Author
  • Contributor ⭐️⭐️
  • January 24, 2018
Hi Rens,
Could you please share me working example code.

nital
  • Author
  • Contributor ⭐️⭐️
  • January 24, 2018
Hi Rens,

With method delete is working.. 🙂 thanks.. @Julian could you please ask your documentation team to add this, except it is intended to hide.. 🙂 Thanks a lot

Rens
  • inSided
  • January 24, 2018
Which documentation or instructions have you received and used, Nital? I've found the remarks I gave you myself in the documentation, on page 15 of DocumentationinSidedCommunityAPI-1.1.pdf. 🤓

nital
  • Author
  • Contributor ⭐️⭐️
  • January 24, 2018
My Mistake Rens, I overlooked Method param mentioned in doc.

Rens
  • inSided
  • January 24, 2018
No problem at all! That enables us to improve them to help others find the information better in the feature. Thanks for your feedback ☺️

nital
  • Author
  • Contributor ⭐️⭐️
  • January 25, 2018
Hi Rens,
One more question on same note, as we are using UAM now on other hand we want is :
If user logout from Insided it should logout from our support site too, to make trusted circle complete!

Can insided team configure this for us to trigger a callback/redirect on our php page once it is logout from insided.

Rens
  • inSided
  • January 26, 2018
That would require some kind of webhook, I think. As we don't have such functionality yet, you might want to propose the feature in our Ideation board to brainstorm and vouch for it together?

nital
  • Author
  • Contributor ⭐️⭐️
  • January 31, 2018
Hi Ren,

As per discussion with Maryam it is possible to redirect after logout from insided to tomtom. Could you please let me know your input on this.

Rens
  • inSided
  • February 7, 2018
Was this question already answered, @Maryam ? It helps if you could ask your questions in one place, Nital, so other people can benefit from these answers as well and we can centralize the information! 🤓