keycloak Invalid parameter: redirect_uri

VIJAY THAKUR picture VIJAY THAKUR · Jul 27, 2017 · Viewed 106.6k times · Source

When I am trying to hit from my api to authenticate user from keycloak, but its giving me error Invalid parameter: redirect_uri on keycloak page. I have created my own realm apart from master. keycloak is running on http. Please help me.

Answer

tryingToLearn picture tryingToLearn · Jul 19, 2018

What worked for me was adding wildchar '*'. Although for production builds, I am going to be more specific with the value of this field. But for dev purposes you can do this.

enter image description here

Setting available under, keycloak admin console -> Realm_Name -> Cients -> Client_Name.

EDIT: DO NOT DO THIS IN PRODUCTION. Doing so creates a large security flaw.