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
* Creates the java admin client instance to be used to call admin REST API against Keycloak server.
115
+
*
116
+
* @param serverUrl Keycloak server URL
117
+
* @param realm realm name
118
+
* @param username username of the admin user to be used.
119
+
* @param password password of the admin user
120
+
* @param clientId client ID
121
+
* @param clientSecret client secret. Could be left null in case that clientId parameter points to the public client, which does not require client authentication
122
+
* @param sslContext ssl context. Could be left null in case that default SSL context should be used.
123
+
* @param customJacksonProvider custom Jackson provider. Could be left null in case that Jackson provider will be automatically provided by the admin client. Please see <a href="https://www.keycloak.org/securing-apps/admin-client#_admin_client_compatibility">the documentation</a> for additional details regarding the compatibility
124
+
* @param disableTrustManager If to disable trust manager for SSL checks. It is false by default. The value true should be used just for the development purposes, but should not be used in production
125
+
* @param authToken access token to be used to call admin REST API. This can be left null if you want admin client to login the user (based on the parameters username, password, clientId and clientSecret) and manage it's own login session. But in case you already have existing session, you can inject the existing access token with the use of this parameter. In that case, it is recommended to leave the properties username, password, clientId or clientSecret empty
126
+
* @param scope Custom "scope" parameter to be used. Could be left null in case of default scope should be used. That is sufficient for most of the cases.
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* See {@link #getInstance(String, String, String, String, String, String, SSLContext, Object, boolean, String, String)} for the details about the parameters and their default values
* <p>Example usage with grant_type=client_credentials</p>
@@ -63,6 +65,7 @@ public class KeycloakBuilder {
63
65
privateClientresteasyClient;
64
66
privateStringauthorization;
65
67
privateStringscope;
68
+
privatebooleanuseDPoP = false;
66
69
67
70
publicKeycloakBuilderserverUrl(StringserverUrl) {
68
71
this.serverUrl = serverUrl;
@@ -105,6 +108,12 @@ public KeycloakBuilder clientSecret(String clientSecret) {
105
108
returnthis;
106
109
}
107
110
111
+
/**
112
+
* Custom instance of resteasy client. Please see <a href="https://www.keycloak.org/securing-apps/admin-client#_admin_client_compatibility">the documentation</a> for additional details regarding the compatibility
0 commit comments