Come forzare l'aggiornamento dell'avatar con SSO?

Sto utilizzando l’SSO e passo questo array quando l’utente effettua il login:

// e infine costruiamo il grande array che stiamo passando a Discourse
$userParams = [
	'external_id'         => $userObject->getID(),
	'email'               => $userObject->getEmail(),
	'username'            => $name,
	'avatar_url'          => $forumThumbURL,
	'avatar_force_update' => 'true',
	'groups'              => implode(',', $groupsArray),
];

Ecco il problema: l’avatar non viene mai aggiornato. Rimango bloccato con un avatar vecchio sul sito e non sembra cambiare. Posso accedere ed uscire, so che questo codice viene eseguito, ma nessun cambiamento. La mia coda Sidekiq è a 0.

Si tratta di un utente amministratore; questo potrebbe fare differenza?

The parameters you are passing look correct to me. It should not make any difference that you are trying to set the avatar for an admin user. Are you sure that the avatar_url you are passing is correct? If you try logging in as a new user, does the avatar get set correctly?

Hey, thanks for the reply. So I tried this with a different user – and for that user it’s working. But for my admin user, no go, it won’t let go of the image it has.

I realized that the image for my admin is the one it downloaded from Gravatar (when I first set up my forum), and since then I’ve completely turned off Gravatar. But could that have something to do with why it won’t let it go?