-
- Downloads
Switch to the OIDC discover protocol for the provider config
The goal is to support every OIDC server that implements the discover protocol (Keycloak for example). This allows us to fetch all the required information at runtime without the user having to keep the settings in sync with the used server. The config and public keys are cached for one hour. While in theory this works with non-keycloak it isn't tested yet, and we still need keycloak specific settings for the API docs auth because we only support keycloak with our frontend web components which we inject into the openapi docs. Fixes #3
parent
6652d9ba
No related branches found
No related tags found
Showing
- README.md 15 additions, 14 deletionsREADME.md
- src/Authenticator/BearerAuthenticator.php 7 additions, 5 deletionssrc/Authenticator/BearerAuthenticator.php
- src/Authenticator/BearerUser.php 2 additions, 2 deletionssrc/Authenticator/BearerUser.php
- src/Authenticator/BearerUserProvider.php 15 additions, 22 deletionssrc/Authenticator/BearerUserProvider.php
- src/Authenticator/BearerUserProviderInterface.php 2 additions, 2 deletionssrc/Authenticator/BearerUserProviderInterface.php
- src/Authenticator/LocalTokenValidator.php 87 additions, 0 deletionssrc/Authenticator/LocalTokenValidator.php
- src/Authenticator/RemoteTokenValidator.php 40 additions, 0 deletionssrc/Authenticator/RemoteTokenValidator.php
- src/Authenticator/TokenValidationException.php 1 addition, 1 deletionsrc/Authenticator/TokenValidationException.php
- src/Authenticator/TokenValidatorBase.php 2 additions, 2 deletionssrc/Authenticator/TokenValidatorBase.php
- src/DependencyInjection/Configuration.php 28 additions, 19 deletionssrc/DependencyInjection/Configuration.php
- src/DependencyInjection/DbpRelayAuthExtension.php 13 additions, 8 deletionssrc/DependencyInjection/DbpRelayAuthExtension.php
- src/Keycloak/Keycloak.php 0 additions, 66 deletionssrc/Keycloak/Keycloak.php
- src/Keycloak/KeycloakRemoteTokenValidator.php 0 additions, 87 deletionssrc/Keycloak/KeycloakRemoteTokenValidator.php
- src/OIDC/OIDError.php 9 additions, 0 deletionssrc/OIDC/OIDError.php
- src/OIDC/OIDProvider.php 174 additions, 0 deletionssrc/OIDC/OIDProvider.php
- src/OIDC/OIDProviderConfig.php 54 additions, 0 deletionssrc/OIDC/OIDProviderConfig.php
- src/Resources/config/services.yaml 12 additions, 8 deletionssrc/Resources/config/services.yaml
- src/Service/OIDCUserSession.php 1 addition, 1 deletionsrc/Service/OIDCUserSession.php
- tests/Authenticator/BearerAuthenticatorTest.php 75 additions, 0 deletionstests/Authenticator/BearerAuthenticatorTest.php
- tests/Authenticator/BearerUserProviderTest.php 47 additions, 0 deletionstests/Authenticator/BearerUserProviderTest.php
Loading
Please register or sign in to comment