Undocumented parameter required for GitHub Oauth

Aperta
#6,948 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github, kubernetes

Direzione di ricerca

Leggi la pagina OAuth e la pagina di configurazione del self-hosting indicate nell’issue, quindi confronta le relative istruzioni di configurazione con il JSON oauth_github richiesto. L’attività è completata quando la documentazione copre esplicitamente il client ID, il redirect URI e lo scope user:email per la configurazione Kubernetes/OSS, incluso il callback /oauth/github.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
9.9k
Fork
658
Merge medio
1g 15h
PR unite (30g)
168

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Flagsmith/flagsmith

Tutte le issue di Flagsmith/flagsmith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.