Passing "Location" and "Web Site" from SSO?

I’ve been a’searchin’ but can’t find an answer to this question.

Is it possible to pass values to Discourse’s “Location” and “Web Site” fields in users’ profiles using SSO? Didn’t see those specific ones in the list of accessors.

Thanks!

「いいね!」 2

Anybody?.. :face_with_raised_eyebrow:

No, you can only pass the fields that are in the accessors list at the top of single_sign_on.rb: https://github.com/discourse/discourse/blob/master/lib/single_sign_on.rb#L2.

「いいね!」 1

Thanks @simon! Just as I thought. I don’t suppose these could be added to the accessors? I guess I’ll use custom user fields in the meantime, just seems silly to use custom fields for these as they already exist in Discourse.

「いいね!」 3

How do you pass custom user fields? I’m trying to pass them along with items in the accessors list, but it’s not working.