Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint de création de Datapass User #383

Closed
florimondmanca opened this issue Aug 24, 2022 · 0 comments · Fixed by #395
Closed

Endpoint de création de Datapass User #383

florimondmanca opened this issue Aug 24, 2022 · 0 comments · Fixed by #395
Assignees
Labels

Comments

@florimondmanca
Copy link
Collaborator

florimondmanca commented Aug 24, 2022

Pour le cas "Plusieurs organisations à choisir", le front doit pouvoir indiquer au serveur laquelle a été choisie.

Ça correspond au fond à créer un DataPassUser, avec un organization_siret et un email.

La commande CreateDataPassUser existe déjà. Il suffit en principe de l'exposer sous la forme d'un endpoint :

POST /auth/datapass/users/

L'endpoint doit être protégé : on créera un token aléatoire signé avec itsdangerous (signature cryptographique basée sur une clé secrète côté serveur). On l'envoie au client et celui-ci devra renvoyer ce token dans sa requête. On en vérifie la validité en le déchiffrant. Seul un attaquant qui connaît la clé secrète serait en mesure de forger des tokens signés valides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant