I have discourse set up to use a custom SSO server for login. I would like to use that login information to also update the user’s avatar automatically. In my ecosystem, the user’s username can be directly mapped to a URL (e.g., http://myserver.com/thumbnails/username.jpg).
I am having trouble getting the override to work. SSO authentication is working and I can override other things (like the user’s real name), but not the avatar. Here is the snippet (PHP) I am using:
$userparams = array( "nonce" => $nonce, "external_id" => $username, "username" => $username, "name" => $realname, "email" => $email, "avatar_force_update" => true, "avatar_url" => 'http://myserver.com/thumbnails/username.jpg'); $payload = base64_encode(http_build_query($userparams)); $sig = ...
Any idea what is going on? The URL is valid. Am I misinterpreting what discourse is expecting in terms of a URL?