-
- Downloads
Resolve openid connect configuration discovery at runtime
This replaces the script that generates authsource config with just the need to place the issuer url in the authsource config. It turns out that some of the openid connect providers out there cycles the signing keys so often that storing them directly in the config isn't a good idea. This commit also moves most of the OpenID Connect specific code into a new Provider class, that could in theory also be used by other users of the oauth2-client library
Showing
- lib/Auth/Source/OAuth2.php 3 additions, 1 deletionlib/Auth/Source/OAuth2.php
- lib/Auth/Source/OpenIDConnect.php 6 additions, 36 deletionslib/Auth/Source/OpenIDConnect.php
- lib/Providers/OpenIDConnectProvider.php 218 additions, 0 deletionslib/Providers/OpenIDConnectProvider.php
- openid-connect-configuration.php 0 additions, 104 deletionsopenid-connect-configuration.php
- tests/lib/Auth/Source/OpenIDConnectTest.php 38 additions, 75 deletionstests/lib/Auth/Source/OpenIDConnectTest.php
- tests/lib/MockOpenIDConnectProvider.php 33 additions, 0 deletionstests/lib/MockOpenIDConnectProvider.php
- tests/lib/Providers/OpenIDConnectProviderTest.php 51 additions, 0 deletionstests/lib/Providers/OpenIDConnectProviderTest.php
Loading
Please register or sign in to comment