Backslahes in URI component

  • thakur.suryadeo
    # 1 month ago

    I am trying to implement the miniorange oauth server on wordpress. The goal is to use the wordpress credentials to sign as SSO on a client.

    So far I cannot seem to get it working.
    I always see the encoded URL state component has backslashes added to it.


    which results in sso login failure with unkown error status.

    When manually decoding the URL string with JS decodeURIComponent{\\\\\\"sid\\\\\\":\\\\\\"SID\\\\\\",\\\\\\"url\\\\\\":\\\\\\"https:\\\\\\\\/\\\\\\\\/\\\\\\\\/\\\\\\"}

    and remove the backslahes using replace(/\\/g, ”)

    It results into{"sid":"SID","url":""}

    And this loggs in successfully. Which tells me the SSO client cannot handle payload with backslashes.

    I want to know if it is the SSO Server or the wordpress adding the backslashes here.

    Or has anyone experienced something similar ? I saw something similar in Stackoverflow post which states that json_encode adds backlashes.

    I just need to confirm if it is a miniorange problem or wordpress

    # 4 weeks, 1 day ago

    Hi there,

    Thank you for bringing this to our attention.

    We have identified the issue you mentioned, the plugin is currently not handling JSON based state parameters correctly and our team is working on a fix for this. We will release this fix in our next release which will be available on the WordPress plugin repository on Friday or early next week.

    If you want you can also reach out to us using the support from in the plugin and we can provide you with a quick patch before the release.

    Team miniOrange

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.