Improve SAML configuration creation and consumption flow

Aperta
#7,527 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python, react

Direzione di ricerca

Non vengono indicati file o test. Inizia tracciando il flusso di creazione della configurazione SAML dell'API e la gestione del login nel frontend per il flag sso_idp esistente. Il lavoro è completo quando vengono generati nomi univoci, è disponibile un flusso di conferma facoltativo, viene utilizzato un URL di login SSO personalizzato ed esiste una schermata SSO dedicata per gli utenti non autenticati, senza il modulo di login normale.

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

Descrizione

There are 2 main issues with the SAML configuration creation and consumption flow:

  1. When creating a SAML configuration, the user needs to add a 'name'
  2. Authenticating users have to input this name when using SAML to authenticate with that organisation

I'd like to improve this by removing the manual input step, and giving organisations dedicated URLs to login so they don't need to enter the name.

The suggested approach is to have the API generate the name for them which should be a slug of their organisation name. If this already exists, the API should add additional random characters to the end of the name. The user should be able to modify the name if they choose to, but the input should not be editable by default. If the user submits a name that is already taken, the system should automatically add random characters to the end of the name, and present it back to them for confirmation.

When the SAML configuration is created, they should be given a custom Login URL that looks something like: https://app.flagsmith.com/login/?sso_idp=<configuration-name>. On browsing to that URL in an unauthenticated browser, the user should not be prompted with the regular login screen (as is the current behaviour if they set the sso_idp flag), but they should see a screen that just has a single button with the text 'Login to Flagsmith with SSO' or similar.

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.