SSO: Add support for OAuth2 providers that do not support oidc

未關閉
#963 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
rust

研究方向

Start with the SSO documentation and the sqlpage.json settings described in the issue, then review the failing https://github.com/.well-known/openid-configuration request and the linked OAuth documentation. Done means either defining a supported path for OAuth2-only providers such as GitHub or clearly documenting that only OIDC discovery is supported.

由索引模型根據 Issue 內容生成。

描述

enhancement

🧩 Problem

I tried configuring GitHub authentication using the following in my sqlpage.json:

{
  "oidc_issuer_url": "https://github.com",
  "oidc_client_id": "<my-client-id>",
  "oidc_client_secret": "<my-client-secret>",
  "host": "localhost:8080"
}

However, SQLPage fails to start with the following error:

Failed to discover OIDC provider metadata

Caused by:
    Server returned invalid response: HTTP status code 404 Not Found at https://github.com/.well-known/openid-configuration

This happens because GitHub is not a full OpenID Connect (OIDC) provider — it supports OAuth 2.0, but does not expose .well-known/openid-configuration, nor does it provide an id_token.

🔍 Expected Behavior

Given that GitHub is listed in the SQLPage OIDC documentation, it would be great if SQLPage could support OAuth2-only providers like GitHub, either by:

  1. Allowing manual configuration of:

    • authorization_endpoint
    • token_endpoint
    • userinfo_endpoint
    • scopes
  2. Disabling .well-known discovery for non-OIDC providers

This way, SQLPage could support a broader range of providers, such as GitHub, Discord, Slack, etc.

💡 Suggested Workaround

Until then, developers must proxy GitHub through a full OIDC layer (e.g. Auth0, Keycloak, or Authentik) in order to integrate GitHub login with SQLPage.

📎 References

✅ Request

Please add support for manual OIDC configuration (without issuer discovery), or clarify the limitations of GitHub auth in the documentation.

主要語言
Rust
星號
2.6k
分支
175
平均合併
14 小時 16 分鐘
30 天內合併 PR
43

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

sqlpage/SQLPage 的其他 Issue

查看 sqlpage/SQLPage 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。