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:
parent
8fe263e7b3
commit
78b88765ec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue