Discourse OAuth2 Basic

The only remaining issue for me now is the same as @nodomain : the account is created successfully but the avatar is not included. Sample response:

Body: {
  "profile" : {
    "email": "...",
    "name": "...",
    "picture": "https://somedomain.com/somevalidpicture.jpg"

And it is correctly parsed, since it appears in the following log:

OAuth2 Debugging: after_authenticate response: 

creds: {"token"=>"...", "expires_at"=>1702053692, "expires"=>true}
uid: 1234
info: {"email"=>"...", "name"=>"...", "avatar"=>"https://somedomain.com/somevalidpicture.jpg"}
extra: {}

I checked that the picture address is correct, and it’s size is 300x300.

Any idea for that one?

Edit: someone just created an account, and it took the picture from Gravatar. Maybe the valid picture in the json gets overriden by a blank result from Gravatar?