dominik-th / matomo-plugin-LoginOIDC

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

Unexpected response from OAuth service #84

Open karuppiah-a opened 1 year ago

karuppiah-a commented 1 year ago

Currently we are testing the Login OIDC plugin with the AWS Cognito but we are getting the below issue.

image

Any help would be much appreciated

luketainton commented 1 year ago

I'm having this issue too. I'm getting the following line in my log file: WARNING LoginOIDC[2022-12-23 21:46:14 UTC] [a5e20] /matomo/plugins/LoginOIDC/Controller.php(254): Warning - Undefined property: stdClass::$username - Matomo 4.13.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) #0/plugins/LoginOIDC/Controller.php(254),[internal function]: Piwik\Plugins\LoginOIDC\Controller->callback(),#2/core/FrontController.php(631),#3/core/FrontController.php(169),#4/core/dispatch.php(32),#5/index.php(25)

Eagle-Admin commented 1 year ago

Same issue here.

I can sign in with my user, but the response fails.

I have everything set up as https://github.com/dominik-th/matomo-plugin-LoginOIDC/issues/5 Including the NGINX redirect.

ataraxus commented 1 year ago

did you somehow fixed it? im stuck at the same issue

ataraxus commented 1 year ago

i fixed it for me. I followed this advice: https://github.com/dominik-th/matomo-plugin-LoginOIDC/issues/5#issuecomment-500903400 and discoverd, that i c&p the wrong token url for my oidc config for Keycloak, i used:

https://auth.xxx.de/auth/realms/xxx/protocol/openid-connect/access_token but the correct should be: https://auth.xxx.de/auth/realms/xxx/protocol/openid-connect/token

I hope this helps you too