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

Auth0 Login Hangs #26

Closed Kanaderu closed 3 years ago

Kanaderu commented 3 years ago

Hello,

I have the plugin installed and setup to use an existing Auth0 setup. I followed the parameters setup defined here: https://github.com/dominik-th/matomo-plugin-LoginOIDC/blob/master/docs/faq.md

The login page shows up from Auth0 but when signing in, the page hangs (at least for several minutes) on the Auth0 sign-in screen and never completes. The Auth0 logs shows a successful login. When refreshing the page while it is hanging, an error shows up with: User not found. User could not be created because the OAuth service did not return an email address. I also have the option Create new users when users try to log in with unknown ODIC accounts enabled.

Are there any additions that need to be made to the Auth0 other than setting the Allowed Callback URLs parameter?

Settings: Screenshot from 2020-08-09 21-22-29

dominik-th commented 3 years ago

Hi there!

When you have automatic user creation enabled you also have to add a scope which provides Matomo the users email address.

Try to set the scope to openid email

https://auth0.com/docs/scopes/current

Kanaderu commented 3 years ago

Ah yep, that did the trick!

Thanks!