nicolabeghin / keycloak-spid-provider-configuration-client

A configuration client for a keycloak installation patched with the spid provider plugin
6 stars 4 forks source link

Error retrieving Keycloak token #6

Closed FabrizioGreco closed 3 months ago

FabrizioGreco commented 7 months ago

Hi, my Keycloak version is 23.0.0 and I need to integrate login with SPID. When I run the client the output is:

image

I configured my .env file with right Realm and createSpidDemoIdP = true

Does anyone know what it might be related to? I also tried with version 23.0.6 but same story.

Thanks!

JackAubrey commented 3 months ago

Hi. I'm not a specialist, but spending a bit of time through Keycloak doc and inspecting this code (I never worked with nodes.js until now) I found where is the main issue.

KeyCloak 24.X removed the prefix "/auth" from its REST API.

So simply modify the "https.js" file in order to remove the "/auth" from all URL occurrence.

FabrizioGreco commented 3 months ago

Ooh ok, it worked. Thank you so much!