# Can't get avatar overrides to work over SSO

**URL:** https://meta.discourse.org/t/cant-get-avatar-overrides-to-work-over-sso/47705
**Category:** Support
**Created:** [24 juli 2016 om 09:41 UTC](https://meta.discourse.org/t/cant-get-avatar-overrides-to-work-over-sso/47705 "2016-07-24T09:41:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [24 juli 2016 om 09:41 UTC](https://meta.discourse.org/t/cant-get-avatar-overrides-to-work-over-sso/47705/1 "2016-07-24T09:41:45Z")

</div>

I can’t get the avatar overrides to work over SSO.

My SSO procedure works fine in all other respects. I am able to override a user’s full name, for example, but not the avatar.

Here are the parameters I’m passing (in addition to the nonce, user id and email):

```plaintext
array:4 [▼
  "username" => "aarmstrong"
  "name" => "Alex Armstrong"
  "avatar_force_update" => true
  "avatar_url" => "http://www.amicalnet.dev/assets/img/uploads/alehandrof-profile-pic.jpg"
]

```

I have `sso overrides avatar` enabled. I have `automatically download gravatars`, `allow uploaded avatars` and `external system avatars enabled` disabled.

I’ve read every the [main topic](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045) about SSO as well as all topics about avatars and SSO that I could find, but I don’t see what I might be doing wrong.

In case it matters, I’m doing this locally. So Discourse, using Vagrant, is at [http://localhost:4000](http://localhost:4000) and my site is at [http://www.amicalnet.dev](http://www.amicalnet.dev). I’m using [cviebrock’s PHP SSO helper](https://github.com/cviebrock/discourse-php).

I’m out of things to try. Any ideas?

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [28 juli 2016 om 08:19 UTC](https://meta.discourse.org/t/cant-get-avatar-overrides-to-work-over-sso/47705/2 "2016-07-28T08:19:31Z")

</div>

And, in case it helps more, here’s the verbose SSO log:

```plaintext
Verbose SSO log: User was logged on alex

nonce: <stuff>
name: Alex Armstrong
username: aarmstrong
email: <my email>
avatar_url: http://www.amicalnet.dev/assets/img/uploads/alehandrof-profile-pic.jpg
avatar_force_update: true
require_activation: 
about_me: 
external_id: <stuff>
return_sso_url: 
admin: 
moderator: 
suppress_welcome_message: 

```

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [28 juli 2016 om 08:50 UTC](https://meta.discourse.org/t/cant-get-avatar-overrides-to-work-over-sso/47705/3 "2016-07-28T08:50:47Z")

</div>

I can’t, for the life of me, understand why, but non-local avatar URLs work fine.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/a/3abdfaee56f610575faac21c033dd3df7ce1167e.gif)

I wish trying this out had occurred to me, oh, about five days ago 😃

Edit: maybe related to this → [https://meta.discourse.org/t/having-issues-downloading-avatars-from-localhost/45311](https://meta.discourse.org/t/having-issues-downloading-avatars-from-localhost/45311)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 juni 2024 om 12:45 UTC](https://meta.discourse.org/t/cant-get-avatar-overrides-to-work-over-sso/47705/4 "2024-06-08T12:45:25Z")

</div>

This topic was automatically closed after 2876 days. New replies are no longer allowed.
