You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using this bundle (v2.1.0) combined with league/oauth2-client (v.2.2.1) and knpuniversity/oauth2-client-bundle (v2.3.0). I have the problem that the config parameter encryptionKeyPath is always overwritten and can not be used for that reason.
As far as I understand this happens:
In the Stevenmaguire\OAuth2\Client\Provider\Keycloak the constructor reads the encryption key file content and puts it in the encryptionKey property. After that the parent constructor League\OAuth2\Client\Provider\AbstractProvider is called. For each option the property will be set with the corresponding value. Thats also the case for the encryptionKey option. So the previous value from encryptionKeyPath will always be overwritten by the encryptionKey value.
Now comes the problem with the knpuniversity/oauth2-client-bundle. In KnpU\OAuth2ClientBundle\DependencyInjection\Providers\KeycloakProviderConfigurator encryption_key is set with default null. So even if you do not have it in your configuration, it is passed as option with value null to the Provider constructors. You end up with encryptionKey null without the content from your encryptionKeyPath in any case.
The text was updated successfully, but these errors were encountered:
Hello,
I'm using this bundle (v2.1.0) combined with league/oauth2-client (v.2.2.1) and knpuniversity/oauth2-client-bundle (v2.3.0). I have the problem that the config parameter encryptionKeyPath is always overwritten and can not be used for that reason.
As far as I understand this happens:
In the Stevenmaguire\OAuth2\Client\Provider\Keycloak the constructor reads the encryption key file content and puts it in the encryptionKey property. After that the parent constructor League\OAuth2\Client\Provider\AbstractProvider is called. For each option the property will be set with the corresponding value. Thats also the case for the encryptionKey option. So the previous value from encryptionKeyPath will always be overwritten by the encryptionKey value.
Now comes the problem with the knpuniversity/oauth2-client-bundle. In KnpU\OAuth2ClientBundle\DependencyInjection\Providers\KeycloakProviderConfigurator encryption_key is set with default null. So even if you do not have it in your configuration, it is passed as option with value null to the Provider constructors. You end up with encryptionKey null without the content from your encryptionKeyPath in any case.
The text was updated successfully, but these errors were encountered: