• Resolved audrius.p

    (@audriusp)


    Before decoding id_token using base64, the base64 code should be URL decoded:
    https://www.php.net/manual/en/function.base64-decode.php#118244

    oauth_handler.php
    now is:
    $id_body = base64_decode($id_array[1]);
    and in some cases it doesn’t work, because there are “_” and “-” in the base64 string.

    should be:
    $id_body = base64_decode( str_replace(array(‘-‘, ‘_’), array(‘+’, ‘/’), $id_array[1]) );

Viewing 1 replies (of 1 total)
  • Plugin Author miniOrange

    (@cyberlord92)

    Hello @audriusp,

    Thank you for your important suggestion that can be added to our plugin!

    Will it be possible for you to share the sample JWT token where you found that the plugin code was not working as expected?

    It would help us to better understand the issue, and improve the plugin in the next release.

    Again, thanks for your important feedback!

    Thanks
    Team miniOrange

Viewing 1 replies (of 1 total)
  • The topic ‘id_token not url decoded’ is closed to new replies.