It is not yet supported on admin client. Feel free to create JIRA to
support this. Ideally we should be able to re-use same code for "plug"
client credentials like it's used in our adapters. Maybe we would need
to move some classes from adapter into some more generic module like
"keycloak-core", I am not sure.
Marek
On 25/04/18 23:08, Emanuele Gesuato wrote:
Hi all,
I know that in keycloak 3.4.2 you can use rest admin api by retrieving a
token. This token can be retrieved by using:
- username & password
- clientid & client secret
- signed jwt
for instance by using clientid & clientsecret I can connect to keycloak
host by using the following:
KeycloakBuilder keycloakBuilder = KeycloakBuilder.builder()
.serverUrl(AUTH_SERVER)
.realm(ADMIN_REALM)
.grantType("client_credentials")
.clientId("admin-cli")
.clientSecret("XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
.grantType("client_credentials")
.resteasyClient(client);
My question is how should I use JWT ?
I changed client authenticator in "credentials" tab by selecting "signed
jwt" but from documentation it is not clear to me how to connect by using
this kind of authentication method.
thanks for any help
Emanuele
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user