I followed the steps for javascript adapter provide by Keycloak documentation but i’m having a problem. When i try to access to the keycloak login page when i start the application, it’s impossible to display it. If i change my URL route to go to a specific ressource, i have a keycloak page who is trigger but it tells me : Invalid parameter - redirect uri.
As you know, your application redirects the user to keycloak auth endpoint, which shows user a login form.
After a successful login, keycloak needs to redirect your user back to your application. For security reasons, this should be a pre-approved URL on keycloak.
So, you must pay attention to the correct and exact form of this URL.
Let’s say your applications is accessible via https://my-machine:8443/application, and this is the redirect_uri. You should inform this exact url to keycloak.
You can use wildcards, like https://my-machine:8443/*, and you only need to inform the port if your user needs to include the port in the url to access your application.
It’s possible to see witch redirect_uri your application is trying to use, just inspect the url your browser is showing when the “invalid parameter - redirect uri” is shown by keycloak.