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

Abierto
#963 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
2.6k
Forks
175
Merge medio
14 h 16 min
PR fusionados (30 d)
43

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sqlpage/SQLPage

Todos los issues de sqlpage/SQLPage

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.