jumbojett / OpenID-Connect-PHP

Minimalist OpenID Connect client
https://github.com/jumbojett/OpenID-Connect-PHP
Apache License 2.0
606 stars 363 forks source link

Keycloak 22.0 not supported? #398

Closed CyberLine closed 10 months ago

CyberLine commented 10 months ago

When i add a simple client:

$oidc = new OpenIDConnectClient(
    'https://idp.domain/realms/master/',
    'clientid', 'clienttoken'
);

$oidc->authenticate();
$name = $oidc->requestUserInfo();

i got an Exception: Unable to read key from PublicKeyLoader. Exponent Part of Key is AQAB

CyberLine commented 10 months ago

Ok, seems to be PHP 8.2 related. Works on 7.4.

CyberLine commented 10 months ago

Can you add ext-xml as required in composer.json. That will fix it ...

DeepDiver1975 commented 10 months ago

Which version of this library are you using? The xml dependency has been removed afaik ....

CyberLine commented 10 months ago

Which version of this library are you using? The xml dependency has been removed afaik ....

v0.9.10

DeepDiver1975 commented 10 months ago

oh damn it ... you are absolutly right - 0.9.10 still requires xml - https://github.com/jumbojett/OpenID-Connect-PHP/blob/45aac47b525f0483dd4db3324bb1f1cab4666061/src/OpenIDConnectClient.php#L1143

We should release a new version from master which no longer has this dependency ...