Azure-Samples / Azure-Samples/ms-identity-python-webapp

Question: How to detect authentication operation?

Ouverte
#158 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
question
Langage dominant
PowerShell
Étoiles
324
Forks
145
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi

I'm currently transferring existing Flask-app from Flask-Login to use Entra auth with this library. I got the basic auth flow working ok with login_required decorator.

However, I have several checks and operations for new users which have been run so far when user logs in. These create an entry for new user into app's DB and so on. However, now when using login_required, I have not found any way to detect if user has just authorized him/herself against Entra and then run those operations only in that case.

My first idea was to execute the operations when Entra sends used to callback endpoint/redirect URI, but apparently modifying that endpoint is not possible (if I got this right) and it just redirects user back to originally used endpoint.

Before banging my head any further with this, is there any way to detect recent auth/login via the library?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par le décorateur login_required et le comportement de callback/redirect URI décrit dans l’issue. Déterminez si la bibliothèque expose un moyen pris en charge d’identifier une autorisation Entra récente et d’exécuter des opérations lors de la première connexion ; le travail est terminé avec une réponse documentée ou une demande de modification clairement délimitée.

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

Évaluation

Stack technique
azure, flask, python
Domaine
authentication
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
20/100

Recevez les nouvelles issues par e-mail

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