It's called "resource" in my file. If you download adapter config from keycloak admin web ui it's generating "resource" too not "client-id", i didn't analyze the code but I think it's the same because it's works.
But finally I managed to use SSO, need this two key/value pair in oidc.json:
"token-store": "cookie"
"adapter-state-cookie-path": "/"
Token store is Session by default which is not good in this scenario, and cookie path need to be set to / for each war do not make it's own path cookie like (/common-web, /admin-web, /customer-web)
But now when I calling my logout endpoint which only calls this:
@GET
@Path("/logout")
public Response logout() {
try {
request.getSession().invalidate();
request.logout();
} catch (ServletException e) {
throw new RuntimeException(e);
}
return Response.ok(new ResponseWrapper<>(true)).build();
}
it's logouts from keycloak - the user session is deleted from it (in keycloak admin ui no session exists for the user which is good) - but not deleting the created OIDC_STATE cookie from the browser and I can still use all of the endpoint because wildfly thinks session is still exists.