diff --git a/authz/client/src/main/java/org/keycloak/authorization/client/AuthzClient.java b/authz/client/src/main/java/org/keycloak/authorization/client/AuthzClient.java index cd06d2a4b8..f3768ed7a6 100644 --- a/authz/client/src/main/java/org/keycloak/authorization/client/AuthzClient.java +++ b/authz/client/src/main/java/org/keycloak/authorization/client/AuthzClient.java @@ -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); } -} \ No newline at end of file +}