id_token not url decoded
-
Before decoding id_token using base64, the base64 code should be URL decoded:
https://www.php.net/manual/en/function.base64-decode.php#118244oauth_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)
Viewing 1 replies (of 1 total)
- The topic ‘id_token not url decoded’ is closed to new replies.