您好,
我将在此处引用的一个问题拆分为一个主题:Discourse OAuth2 Basic - #304 by nodomain
此处 Discourse OAuth2 Basic - #316 by jmlord (这是我)
以及可能在这里 User avatar not updating on re-log in
账户创建成功,但头像未包含。示例响应:
Body: {
"access_token":"...",
"token_type":"bearer",
"expires_in":"3600",
"scope":"profile",
"profile" : {
"id":1234,
"email": "...",
"name": "...",
"picture": "https://somedomain.com/somevalidpicture.jpg"
}
}
变量 oauth2 callback user info paths 包含值 avatar:profile.picture,并且已正确解析,因为它出现在以下日志中:
OAuth2 Debugging: after_authenticate response:
creds: {"token"=>"...", "expires_at"=>1702053692, "expires"=>true}
uid: 1234
info: {"email"=>"...", "name"=>"...", "avatar"=>"https://members.geobon.org/pages/profile-picture/62146-17077.jpg"}
extra: {}
我已检查图片地址是否正确,其尺寸为 300x300。这是示例。
我检查了存储图片的服务器日志,在创建账户和首次登录期间没有尝试下载此图片。
有什么想法可以解释为什么这对我们不起作用?(显然,它在其他一些配置下是有效的……)