Hi all and thanks for this awesome project,

I'm trying to setup an Apiman instance pointing to external Keycloak server (and Elastic search, I don't know if it could be related)
but I'm not able to log in.

The Apiman version is 1.2.1.Final and Keycloak 1.8.0.CR3.

In standalone-apiman.xml I have removed the lines:

https://github.com/apiman/apiman/blob/master/distro/wildfly9/src/main/resources/overlay/standalone/configuration/standalone-apiman.xml#L31

and

https://github.com/apiman/apiman/blob/master/distro/wildfly9/src/main/resources/overlay/standalone/configuration/standalone-apiman.xml#L408-L410

and set the auth server in

https://github.com/apiman/apiman/blob/master/distro/wildfly9/src/main/resources/overlay/standalone/configuration/standalone-apiman.xml#L414

The apiman-realm is taken from https://raw.githubusercontent.com/apiman/apiman/master/distro/data/src/main/resources/data/apiman-realm.json

and I have substituted the "secret" fields with the values from standalone-apiman.xml.

Relevant ERROR logs from Apiman org.keycloak.adapters.OAuthRequestAuthenticator are:

failed to turn code into token
status from server: 400
{"error_description":"Client secret not provided in request","error":"unauthorized_client"}

Any hint?

Cheers, Enrico