Gwojda/keycloakopenid

Error with Authorization Header authentification

Opened this issue · 0 comments

Hello,

I am using keycloak-js and keycloak-angular to authenticate via Keycloak, it works well on the frontend and I checked that the token is valid via Postman, but the requests get redirected to keycloak and I have the following message:

DBG fmt/print.go:225 > code is missing, redirect to keycloak module=github.com/Gwojda/keycloakopenid plugin=plugin-keycloakopenid runtime=

After quickly going through the code in main.go, I saw that the Authorization cookie is checked, but not the header which keycloak-angular is using (line 22).
I tried setting UseAuthHeader to true but it doesn't seems to have any effect. Would it be possible to somehow take into account the Authorization header as well ?