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

(Denis Heraud) #1

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.


(Denis Heraud) #2

Anybody?.. :face_with_raised_eyebrow:

(Simon Cossar) #3

No, you can only pass the fields that are in the accessors list at the top of single_sign_on.rb: discourse/single_sign_on.rb at master · discourse/discourse · GitHub.

(Denis Heraud) #4

Thanks @Simon_Cossar! 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.