zorn-v / nextcloud-social-login

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

What's the use of Profile Fields (optional, comma-separated)? #454

Open TimoReusch opened 5 months ago

TimoReusch commented 5 months ago

I'm a bit confused with the profile fields option when integrating an own OAuth provider. From my understanding, this option should map fields to one-another (e.g. nextcloud_email <-> fancy_name_for_user_mail). However, this does not seem to be the case.

Is there any documentation available or can someone explain?

zorn-v commented 5 months ago

No, it does not mapping, just "show me that fields". Seems some provider respect this parameter (it is not my code). It just add it to profile url https://github.com/zorn-v/nextcloud-social-login/blob/736cd6c2e1634883ae15e65815f2f905e8752a9d/lib/Provider/CustomOAuth2.php#L39

TimoReusch commented 5 months ago

Ah, I see, so its for filtering the information returned by the OAuth Providers /me-Endpoint for certain fields.

I'd suggest adding a little "?" behind the description with a popup for explanation.

zorn-v commented 5 months ago

I'd suggest adding a little "?" behind the description with a popup for explanation.

Just for you ? :smile: It is not hard, but... "any complication needs support"