[Bug] OIDC Cannot read properties of null (reading 'auth_url')
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 22.6k
- Forks
- 1.5k
- Avg merge
- 4h 30m
- Merged PRs (30d)
- 11
Description
What happened?
配置好 OIDC 后访问统一认证页,切换至 OIDC 登录提示 未知错误: Cannot read properties of null (reading 'auth_url')
How we reproduce?
- 使用 Casdoor 创建客户端,回调地址: https://xxx/.safeline/auth/api/callback/oidc
- 重定向origin 设置: https://xxx 并获取到了client ID 和密钥
- 雷池 OIDC 处填写Url: https://xxx 级 Client ID 密钥,能正常保存
- 尝试登录遇到上述问题
- 请求: https://xxx/.well-known/openid-configuration 是可以正确获取到内容的, 且其他应用(如 Halo 使用 Casdoor OIDC 是可以正常使用的)
Expected behavior
正常使用 OIDC 登录
Error log
未知错误: Cannot read properties of null (reading 'auth_url')
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by configuring Casdoor as the OIDC provider and opening the unified authentication page, then inspect the OIDC login flow around the reported auth_url error. Compare the configured values with the response from /.well-known/openid-configuration. Done means the same configuration completes OIDC login without the null-property error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100