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

登录失败 #885

Open
xian952777 opened this issue Jan 4, 2025 · 2 comments
Open

登录失败 #885

xian952777 opened this issue Jan 4, 2025 · 2 comments
Assignees

Comments

@xian952777
Copy link

手动部署完前后端之后
登录成功时前端显示:
{
"status": "error",
"msg": "Unauthorized operation",
"data": null,
"data2": null
}

后端打印:
{"time":"2024-12-31T11:21:25.676151366+08:00","level":"INFO","msg":"http request","ip":"192.168.1.65","method":"GET","latency(ms)":25,"status":200,"current_user":"","auth_type":"","url":"/api/v1/callback/casdoor?code=db36616a98e9883163fa&state=casdoor"}

@hiveer
Copy link
Collaborator

hiveer commented Jan 8, 2025

casdoor 授权登陆成功之后,会回掉到 server 一侧,即你看到的: /api/v1/callback/casdoor?code=db36616a98e9883163fa&state=casdoor,这个时候 server 会进行 code 到 access token 和用户信息的转换,这个依赖于你有一个可用和正确的 casdoor 配置。

从这个错误信息看,你的 server 一侧的 casdoor 配置有问题

@Rader
Copy link
Collaborator

Rader commented Jan 8, 2025

@xian952777 xian 安装时修改过哪些配置?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants