Improve SAML configuration creation and consumption flow

Ouverte
#7,527 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Calme
Stack technique
python, react

Piste de recherche

Aucun fichier ni test n’est nommé. Commencez par suivre le flux de création de la configuration SAML de l’API et la gestion de la connexion dans le frontend pour le flag sso_idp existant. Le travail est considéré comme terminé lorsque des noms uniques sont générés, qu’un flux de confirmation facultatif est disponible, qu’une URL de connexion SSO personnalisée est utilisée et qu’un écran SSO dédié aux utilisateurs non authentifiés existe sans le formulaire de connexion habituel.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
9.9k
Forks
658
Merge moyen
1 j 15 h
PR mergées (30 j)
168

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Flagsmith/flagsmith

Toutes les issues de Flagsmith/flagsmith

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.