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

Handle if user attributes are a property of returned user info #56

Open mwithheld opened 3 years ago

mwithheld commented 3 years ago

Do not fail on implementations that return attributes as a property of the user info. Our CAS-based OIDC service returns the result like this:

result=stdClass Object
(
    [service] => https://mymatomosite.somedomain.com/index.php?module=LoginOIDC&action=callback&provider=oidc
    [attributes] => stdClass Object
        (
            [mail] => myemail@somesomain.com.xxxyyyzzz
...
        )
     [id] => myusername
     [client_id] => myclientid