chaitin / chaitin/SafeLine

[Bug] OIDC Cannot read properties of null (reading 'auth_url')

Open
#1,273 1 comment 1 reaction 0 assignees View on GitHub

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?
  1. 使用 Casdoor 创建客户端,回调地址: https://xxx/.safeline/auth/api/callback/oidc
  2. 重定向origin 设置: https://xxx 并获取到了client ID 和密钥
  3. 雷池 OIDC 处填写Url: https://xxx 级 Client ID 密钥,能正常保存
  4. 尝试登录遇到上述问题
  5. 请求: 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.