Open aloz77 opened 4 months ago
Hello,
What is the alg used for the id_token ? (HSxxx, RSxxx, ...) It's seems the problem come from the id_token verification.
May be you need to verify if you have theses extensions enabled : bcmath or gmp, curl, mbstring. openssl or sodium.
What is the alg used for the id_token ? (HSxxx, RSxxx, ...)
The server has this in the discovery data:
"id_token_signing_alg_values_supported": [
"RS256"
],
For the PHP modules I get this. Shouldn't the dependencies be checked by composer?
php -m | grep -E "curl|bcmath|gmp|mbstring|openssl|sodium"
curl
mbstring
openssl
sodium
Ok. Try with adding gmp. If your are in debian, it must be something like "sudo apt install php8.3-gmp". If your server is not very strong, it's help a lot for RSA algo.
Thank you, unfortunately I can't revalidate. We tried another library (https://github.com/jumbojett/OpenID-Connect-PHP) and that one worked out of the box.
Not a problem. I've started with this library at first before I created this one. A lot of improvments have been made since I tested it.
So, can I close this issue ?
Trying to use the library with PHP 8.3 for OIDC with an Amazon server
Here is the debug output:
The PHP code of callback.php is like this:
Any ideas how to fix?