matomo-plugin-LoginOIDC icon indicating copy to clipboard operation
matomo-plugin-LoginOIDC copied to clipboard

Unexpected response from OAuth service

Open karuppiah-a opened this issue 2 years ago • 4 comments

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

karuppiah-a avatar Dec 20 '22 14:12 karuppiah-a

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)

luketainton avatar Dec 23 '22 21:12 luketainton

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.

Eagle-Admin avatar Jan 16 '23 14:01 Eagle-Admin

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

ataraxus avatar May 04 '23 20:05 ataraxus

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

ataraxus avatar May 04 '23 20:05 ataraxus