Make createPatSupplier private to public

Closes #29986

Signed-off-by: Krishna Kumar <krishnachaurasia1998@gmail.com>
This commit is contained in:
Krishna Kumar 2024-07-23 16:41:42 +05:30 committed by GitHub
parent 6de396d537
commit fc80cc75fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,7 +242,7 @@ public class AuthzClient {
throw new IllegalArgumentException("Configuration URL can not be null.");
}
configurationUrl = KeycloakUriBuilder.fromUri(configurationUrl).clone().path(AUTHZ_DISCOVERY_URL).build(configuration.getRealm()).toString();
configurationUrl = KeycloakUriBuilder.fromUri(configurationUrl).clone().path(AUTHZ_DISCOVERY_URL).build(configuration.getRealm()).toString();
this.configuration = configuration;
this.http = new Http(configuration, configuration.getClientCredentialsProvider());
@ -256,14 +256,14 @@ public class AuthzClient {
}
}
private TokenCallable createPatSupplier(String userName, String password) {
public TokenCallable createPatSupplier(String userName, String password) {
if (patSupplier == null) {
patSupplier = createRefreshableAccessTokenSupplier(userName, password);
}
return patSupplier;
}
private TokenCallable createPatSupplier() {
public TokenCallable createPatSupplier() {
return createPatSupplier(null, null);
}
@ -275,4 +275,4 @@ public class AuthzClient {
final String scope) {
return new TokenCallable(userName, password, scope, http, configuration, serverConfiguration);
}
}
}