Solved

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

  • 23 January 2018
  • 10 replies
  • 186 views

Badge
  • Getting inSpired
  • 13 replies
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
icon

Best answer by Rens 23 January 2018, 13:59

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.
View original

10 replies

Userlevel 4
Badge
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.
Badge
Hi Rens,
Could you please share me working example code.
Badge
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
Userlevel 4
Badge
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. 🤓
Badge
My Mistake Rens, I overlooked Method param mentioned in doc.
Userlevel 4
Badge
No problem at all! That enables us to improve them to help others find the information better in the feature. Thanks for your feedback ☺
Badge
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.
Userlevel 4
Badge
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?
Badge
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.
Userlevel 4
Badge
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! 🤓

Reply