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

OIDC Plugin : Using CUID as Username Instead of Email. #95

Open Meli1Git opened 1 year ago

Meli1Git commented 1 year ago

Hi, I'm using your OIDC plugin, but the version I'm currently using (4.14.2) uses the user's email address as the username. However, I want to use the CUID (Customer User ID) sent by the OIDC server instead because I'm considering replacing my SAML-based authentication system with OIDC. To ensure a smooth transition and maintain the integrity of user data, I would like OIDC to have the same user identification behavior as SAML, which means using the CUID as the username, to prevent the creation of duplicate users when implementing OIDC. Is this possible with the OIDC plugin? Thank you in advance.

bcooksley commented 6 months ago

The attached patch should get you most of the way there - you will need to change $result->nickname to correspond with the OpenID Claim your provider returns.

kde-changes.txt