use toString() instead of cast String or it will fail when using Spring configtree (#10980)

Resolves #10979
Co-authored-by: Bruno Oliveira da Silva <bruno@abstractj.com>
This commit is contained in:
Ian 2022-05-25 16:41:00 -03:00 committed by GitHub
parent 8fe263e7b3
commit 78b88765ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ public class ClientIdAndSecretCredentialsProvider implements ClientCredentialsPr
@Override
public void init(KeycloakDeployment deployment, Object config) {
clientSecret = (String) config;
clientSecret = (config == null ? null : config.toString());
}
@Override