Search code examples
angularkeycloakkeycloak-serviceskeycloak-rest-apikeycloak-js

Keycloak Invalid Redirect Uri, Page not found error


I am trying to integrating keycloak with angular but I am facing issue invalid_redirect_uri/Page_not_found error.

error login

Here is the Keycload configuration:

Angular setting

console

Spent hours on googling but failed.

enter image description here


Solution

  • Since it too long for a comment I will post here.
    I am assuming you have not changed the default keycloak port, there is only one possible issue I see
    By default keycloak quarkus has removed the /auth from it api's and you need to explicitly set if you require this property.

    http-relative-path=/auth
    

    This can be set in the keycloak.conf file in /conf directory.