Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]社交登录-微软账号-配置完不显示登录按钮 #929

Open
Doradx opened this issue Jun 18, 2024 · 6 comments
Open

[bug]社交登录-微软账号-配置完不显示登录按钮 #929

Doradx opened this issue Jun 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Doradx
Copy link

Doradx commented Jun 18, 2024

配置并勾选开启微软登录后,在登录页面不显示微软账号登录按钮。

@qwqcode
Copy link
Member

qwqcode commented Jul 12, 2024

你好,忘记回复了 😂 目前 Nightly 版已经补充了缺失的微软账号配置,问题解决了吗

@Doradx
Copy link
Author

Doradx commented Jul 12, 2024

尝试了,报错:"Field to complete user auth"
且登录按钮不显示图标,如下图:
image

@qwqcode
Copy link
Member

qwqcode commented Jul 13, 2024

尝试了,报错:"Field to complete user auth" 且登录按钮不显示图标,如下图: image

可以看看日志文件 artalk.log [SocialLogin] 报错具体错误信息是什么

@Doradx
Copy link
Author

Doradx commented Jul 13, 2024

尝试了,报错:"Field to complete user auth" 且登录按钮不显示图标,如下图: image

可以看看日志文件 artalk.log [SocialLogin] 报错具体错误信息是什么

日志详情:

{"level":"INFO","ts":"2024-07-13T21:14:48.271+0800","caller":"[handler/setting_apply.go:63]","msg":"[Apply Settings] 服务重启完毕"}
{"level":"ERROR","ts":"2024-07-13T21:15:18.479+0800","caller":"[handler/auth_social_login.go:74]","msg":"[SocialLogin] no provider for microsoft exists"}
{"level":"ERROR","ts":"2024-07-13T21:15:18.502+0800","caller":"[handler/auth_social_login.go:75]","msg":"Field to complete user auth","id":"585cebaa-e380-4151-b491-e7101ce1782e","path":"/api/v2/auth/microsoft/callback","method":"GET","ip":"59.XX.XXX.XX","remote_addr":"172.31.0.1:34106","host":"comments.cuger.cn","referer":"https://login.microsoftonline.com/","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","status":500}
{"level":"ERROR","ts":"2024-07-13T21:15:18.507+0800","msg":"[HTTP] 21:15:18 | 500 |   33.185788ms | 59.XX.XXX.XX | GET | /api/v2/auth/microsoft/callback | - | 585cebaa-e380-4151-b491-e7101ce1782e"}

网页提示:

{
    "msg": "Field to complete user auth"
}

@qwqcode
Copy link
Member

qwqcode commented Jul 16, 2024

😢 不好意思,我之前没有注意到。可以再试试升级到 Nightly 版本,然后微软那边回调地址填写 https://xxx.com/api/v2/auth/microsoftonline/callback(把microsoft 替换为 microsoftonline

@Doradx
Copy link
Author

Doradx commented Jul 16, 2024

亲测已OK。
辛苦了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants