[keycloak-user] Import/export realm : Getting Client secret not provided in request for imported realm

Bruce Wings testoauth55 at gmail.com
Thu Oct 25 03:46:59 EDT 2018


I have exported realm from one keycloak server and imported into another
but I keep getting below error if authorization is enabled i.e. in case of
confidential client.

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

*I made sure my keycloak.json contains the client secret same as that under
Realm->Client->Credentials. My client app is same i.e. same client app with
server-1 works fine but something has been missed in export step which
causes client app with server-2 to be not able to work.*

Is any additional step is required for exporting?

I have tried exporting both from Admin console GUI as well as this doc
(through standalone.sh)
https://www.keycloak.org/docs/4.5/server_admin/index.html#_export_import


More information about the keycloak-user mailing list