lelup24 / keycloak-authentication

6 stars 4 forks source link

Exception after Startup #1

Open naujoks-stefan opened 1 week ago

naujoks-stefan commented 1 week ago

Good afternoon,

I found your good youtube video. After download and install I got this exception:

Failed to load resource: the server responded with a status of 404 () step1.html

Can you help me?

Best Stefan

lelup24 commented 1 week ago

Hello Stefan :)

The step1.html is the reroute to keycloak. So it could be some missconfiguration or maybe the versions don't fit together? Is keycloak running in docker? I will checkout the project and will try to run it.

Greetings Peter

lelup24 commented 1 week ago

Hallo Stefan,

es lag daran, dass ich in der docker-compose.yml die Version von Keycloak auf "latest" gesetzt hatte. Dadurch sind die Versionen auseinander gelaufen in der package.json (keycloak-js und angular-keycloak) und von Keycloak selbst.

Keycloak ist sehr aktiv, was Änderungen betrifft. Darauf sollte man sich auch einstellen, wenn man es in sein Portfolio aufnimmt und aktuell halten möchte :)

Ich habe die Versionen nun hochgezogen und auch diejenigen in der docker-compose.yml festgesetzt.

Eine 404 sollte nicht mehr kommen. Kommt eine 403, dann stimmt was mit den Realm-Settings in Keycloak nicht.

Solltest du noch Probleme haben, dann schreib einfach nochmal :)

Beste Grüße Peter

naujoks-stefan commented 1 week ago

Guten Morgen Peter,

erst einmal vielen lieben Dank für Deine Antwort. Ich hatte im realm in der Capability config die Client authentication / Authorization enabled. Nachdem ich diese disabled habe, läuft es absolut fehlerfrei.

Manchmal steckt die Tücke im Detail ;-))

BG Stefan

lelup24 commented 1 week ago

Super, freut mich, dass es läuft :)