Skip to main content
nital
Contributor ⭐️⭐️
January 23, 2018
Solved

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

  • January 23, 2018
  • 10 replies
  • 396 views
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
    RensAnswer
    inSided
    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.
    This could have been your ad.
    nital
    nitalAuthor
    Contributor ⭐️⭐️
    January 24, 2018
    Hi Rens,
    Could you please share me working example code.
    nitalj
    nital
    nitalAuthor
    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
    nitalj
    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. 🤓
    This could have been your ad.
    nital
    nitalAuthor
    Contributor ⭐️⭐️
    January 24, 2018
    My Mistake Rens, I overlooked Method param mentioned in doc.
    nitalj
    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 ☺️
    This could have been your ad.
    nital
    nitalAuthor
    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.
    nitalj
    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?
    This could have been your ad.
    nital
    nitalAuthor
    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.
    nitalj
    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! 🤓
    This could have been your ad.