keycloak Invalid parameter: redirect_uri

前端 未结 17 2149
旧时难觅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:48

    Log in the Keycloak admin console website, select the realm and its client, then make sure all URIs of the client are prefixed with the protocol, that is, with http:// for example. An example would be http://localhost:8082/*

    Another way to solve the issue, is to view the Keycloak server console output, locate the line stating the request was refused, copy from it the redirect_uri displayed value and paste it in the * Valid Redirect URIs field of the client in the Keycloak admin console website. The requested URI is then one of the acceptables.

提交回复
热议问题