mauriciovigolo / keycloak-angular

Easy Keycloak setup for Angular applications.
MIT License
725 stars 278 forks source link

refresh page #516

Closed bpmsoftdev closed 11 months ago

bpmsoftdev commented 1 year ago

Hi everyone. During the development phase, at each compilation, the page is refreshed. Everything is fine as long as I'm in the root localhost:4200 but if I'm in another page I get an error

  GET http://192.168.0.212:8087/realms/assistance/protocol/openid-connect/auth?client_id=assistance-app&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2F amministrazione%2Fnazioni&state=c491e5df-3d8f-4036-9bd0 -a16cca045a07&response_mode=fragment&response_type=code&scope=openid&nonce=dda2e978-679f-4c65-87aa-1e54706290b3 400 (Bad Request)

We're sorry… Invalid parameter: redirect_uri

Bug Report or Feature Request (mark with an x)

- [x ] bug report 
- [ ] feature request

Versions.

    "keycloak-angular": "^14.1.0",
    "keycloak-js": "^22.0.3",
    "@angular/core": "^16.1.0",
mauriciovigolo commented 11 months ago

Hey @bpmsoftdev , this is a configuration that needs to be done in the keycloak server in the valid redirect urls. More info in the keycloak documentation. I will close this issue since it is not a bug. Thanks!