从 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!

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.

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.

如何传递自定义用户字段?我试图将它们与访问器列表中的项一起传递,但不起作用。