Undocumented parameter required for GitHub Oauth

Abierto
#6,948 1 comentario 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
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github, kubernetes

Línea de trabajo

Lee la página de OAuth y la página de configuración de self-hosting indicadas en el issue y, a continuación, compara sus instrucciones de configuración con el JSON oauth_github requerido. Se considera completado cuando la documentación cubra explícitamente el ID de cliente, la URI de redirección y el scope user:email para la configuración de Kubernetes/OSS, incluido el callback /oauth/github.

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

Descripción

docs
How are you running Flagsmith
  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)
Describe the bug

I don't know if this was documented in the past (I couldn't find an issue for it), but...

When setting up GitHub Oauth on the OSS/community edition the oauth_github flag actually needs a full JSON value with scopes, Oauth client ID, and redirect URI.

{"url":"https://github.com/login/oauth/authorize?client_id=<YOUR_CLIENT_ID>&redirect_uri=https://<your domain>/oauth/github&scope=user:email"}

Also, &scope=user:email is required in the URL, or lookup fails with TypeError in the backend.

The actual docs on these pages make no mention of it:

Took a looot of reverse engineering to figure this out.

Can you please update documentation with a note to the URL/scope/redirect URI parameters inside the oauth_github flag in Flagsmith-On-Flagsmith project?

Or, alternatively, fix frontend code so this can be extracted from existing environment variables and auto-generated by Flagsmith.

Steps To Reproduce

I'm running Flagsmith in Kubernetes via Helm chart with separate frontend and backend deployments, but I would expect this issue to persist independent of deployment method (except maybe docker-compose if default values are hardcoded for local dev)

To reproduce, simply set up GitHub Oauth as documented.

Expected behavior

I would expect GitHub oauth to work as decsribed in the docs.

Screenshots

No response

Lenguaje dominante
Python
Estrellas
9.9k
Forks
658
Merge medio
1 d 15 h
PR fusionados (30 d)
168

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 Flagsmith/flagsmith

Todos los issues de Flagsmith/flagsmith

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.