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

Being asked to log-in twice

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

Description

Hello,

I followed the steps exactly as mentioned (clone the repo, configure Azure variables) but I have a hard time make it work properly when logging-in as different users concurrently.

I did the following:
1. Started the Flask application
2. Loaded the web page which redirected me to login.microsoftonline.com
3. I deleted all the cookies for Microsoft website to have a clean slate
4. Entered my credentials.
5. It got accepted but instead of logging-in, it redirected me to the credential entering page again. This time, under my username it I am already logged-in! I click on enter and log-in again.
6. I enter the website.

Why is it like that? Why do I sometimes have to log-in twice? This happens even if I do not delete Microsoft's cookies.

Another issue is that , if I open an incognito tab and go to the website, I am not logged-in anymore, as expected, so far so good. When I try to log-in using another user, I have to enter my credentials twice again, same issue as before. However, the new issue is that upon entering the website, the first user gets logged in instead of the one I just entered!

In short, I do not know what is going on with regards to cookies of my website vs. those of login.microsoftonline.com.

Guide de contribution

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

Piste de recherche

No source files or tests are named. Start by reproducing the Flask application flow with separate normal and incognito sessions, configured with the Azure variables, and inspect the redirects and cookies across the app and login.microsoftonline.com. Done means users can log in once and a second session reaches the site as the user whose credentials were entered.

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

Évaluation

Stack technique
azure, flask, python
Domaine
authentication, backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

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