zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

other profile token data #272

Closed keesee closed 2 years ago

keesee commented 3 years ago

Is there a straight forward way to bring in other data from the token besides mapped groups? I'm particularly interested in an avatar_url locale phone, and language settings.

we are currently using saml via keycloack, but I' prefer switching over to OIDC if possible. Any best practives on a migration? If user IDs and email match (same instance, same realm) should I expect any issues?

Thanks in advance. Project looks great at a glance :)

JK>

zorn-v commented 2 years ago

You can fork this project and do what you need (opensource rulezz). For keycloak you need this file https://github.com/zorn-v/nextcloud-social-login/blob/master/lib/Provider/CustomOpenIDConnect.php

If user IDs and email match (same instance, same realm) should I expect any issues?

In my project any "external" user should become unique as possible (prefix + id from provider).