Skip to content
Discussion options

You must be logged in to vote

AUTH_CASDOOR_ISSUER 不一定只能是 lobe-auth-api.domain.xx,你可以自定义为自己的域名(比如 https://auth.domain.xx),只要它和 Casdoor 的 Issuer URL 完全一致,并且相关环境变量(如 AUTH_CASDOOR_ENDPOINT)也要同步修改为同样的值。Casdoor 后台的回调地址(redirect/callback URL)也必须和你在环境变量里设置的域名完全匹配,否则会出现配置错误或重定向到 error 页面 参考

常见导致配置错误的原因包括:环境变量不一致、Casdoor 后台未同步修改回调地址、Docker 网络或 DNS 问题、CORS 或反向代理配置不正确,尤其是在 Windows 下部署时更容易遇到网络相关问题 参考 参考

建议检查:

  1. AUTH_CASDOOR_ISSUER 和 AUTH_CASDOOR_ENDPOINT 是否完全一致且指向你的 Casdoor 服务地址。
  2. Casdoor 后台的回调地址是否和你设置的域名一致。
  3. Docker 容器之间网络是否畅通。
  4. 反向代理(如 Nginx)和 CORS 配置是否允许你的新域名访问 Casdoor 参考

只要这些都配置正确,AUTH_CASDOOR_ISSUER 就可以用你的自定义域名,不必局限于 lobe-auth-api.domain.xx。

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | H…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by arvinxx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirm Not yet confirmed by maintainers
2 participants
Converted from issue

This discussion was converted from issue #9031 on September 04, 2025 12:59.