dominik-th / matomo-plugin-LoginOIDC

external authentication services for matomo
https://plugins.matomo.org/LoginOIDC/
GNU General Public License v3.0
43 stars 31 forks source link

Keycloak LoginODIC integration #121

Open Gildoash opened 3 weeks ago

Gildoash commented 3 weeks ago

Hi, I installed an instance of Matomo, and I’m trying to integrate Keycloak with LoginOIDC. However when setting everything up, clicking on the Keycloak login results this error: “The parameter ‘code’ isn’t set in the Request and a default value wasn’t provided.” Can someone tell me how can I set this right? Thanks!

ksyblast commented 2 weeks ago

Hi! We had the same issue and there were two reasons for that:

  1. 'OAuth Scopes' field was not set, we had to set it to 'openid email'
  2. set 'Userinfo ID' to 'sub'

Hope that helps!