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

Aberta
#963 4 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
rust

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Rust
Estrelas
2.6k
Forks
175
Merge médio
14h 16min
PRs com merge (30d)
43

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sqlpage/SQLPage

Todas as issues de sqlpage/SQLPage

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.