Avatars not pulling from SSO

Just to update: no surprise, it looks like the issue is on the moodle end, related to an authentication edge case in the filesystem API. I don’t completely understand it yet, but by changing some settings related to Moodle’s authentication process I am now able to load avatar images appropriately.

I’m not sure why pulling the image via curl worked consistently before, but when I checked again after letting it sit for a few weeks I stopped getting anything. My only guess is that maybe someone upstream from me has some bad caching configured.

Anyway, a sincere thanks to everyone for the help. Things are working great now, and my users are absolutely loving discourse. If I figure out anything more specific, I’ll post it here.