dominik-th / matomo-plugin-LoginOIDC

external authentication services for matomo
https://plugins.matomo.org/LoginOIDC/
GNU General Public License v3.0
43 stars 31 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 11 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

vladimirdulov commented 2 weeks ago

A PR submitted to sort this issue.

Meli1Git commented 3 hours ago

Thank you for the update!