Hi,
I would like in a project to perform the following scenario
A Java HTTP Client calls a HTTP Endpoint exposed by WildFly Swarm where the
address URL ("/rest/say") of the endpoint is secured using Keycloak WildFly
plugin (keycloak.json contains the OIC).
In order at the client side to get the OpenID token that I must send next
to the endpoint using "Authentication: Bearer", is it this class that I
must use to get an instance of Keycloak
Keycloak.getInstance("http/localhost:8080/auth",realm, username, password,
clientId)
& next the token to send
Keycloak.tokenManager().grantToken();
?
Class -->
https://github.com/keycloak/keycloak/blob/2.2.1.Final/integration/admin-c...
Regards
Charles