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
Go to keycloak admin console > SpringBootKeycloak> Cients>login-app page. Here in valid-redirect uris section add http://localhost:8080/sso/login
This will help resolve indirect-uri problem
It seems that this problem can occur if you put whitespace in your Realm name. I had name set to Debugging Realm
and I got this error. When I changed to DebuggingRealm
it worked.
You can still have whitespace in the display name. Odd that keycloak doesn't check for this on admin input.
This error is also thrown when your User does not have the expected Role delegated in User definition(Set role for the Realm in drop down).
I faced the same issue. I rectified it by going to the particular client under the realm respectively therein redirect URL add * after your complete URL.
For me, I had a missing trailing slash /
in the value for Valid Redirect URIs