keycloak Invalid parameter: redirect_uri

前端 未结 17 2111
旧时难觅i
旧时难觅i 2020-12-13 03:27

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

相关标签:
17条回答
  • 2020-12-13 03:54

    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

    0 讨论(0)
  • 2020-12-13 03:59

    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.

    0 讨论(0)
  • 2020-12-13 04:04

    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).

    0 讨论(0)
  • 2020-12-13 04:05

    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.

    0 讨论(0)
  • 2020-12-13 04:08

    For me, I had a missing trailing slash / in the value for Valid Redirect URIs

    0 讨论(0)
提交回复
热议问题