discourse/discourse — pull request #2670 by Wilhansen (2014-08-19 07:55:47+00:00)
Title: Implement SSO overriding avatars.

Reference URL: https://meta.discourse.org/t/add-sso-overrides-avatar-option-for-sso-plugin/14423/3

Implemented by having Discourse download the image from the provided URL
and treating it as a custom upload.

Adds two more parameters to the SSO site’s response:

* `avatar_url` specifies the URL of the overriding avatar.
* `avatar_force_update` Discourse does not re-download avatars that
has already been download from the same URL. Setting this to true forces
Discourse to re-download the avatar in `avatar_url`

Note that both parameters are ignored if `sso_overrides_avatar` is set
to false.