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

Being asked to log-in twice

Aperta
#160 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Answered
Lingua principale
PowerShell
Stelle
324
Fork
145
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Non sono indicati file sorgente o test. Inizia riproducendo il flusso dell'applicazione Flask con sessioni normale e in incognito separate, configurate con le variabili Azure, e ispeziona i reindirizzamenti e i cookie nell'applicazione e su login.microsoftonline.com. Il lavoro è completato quando gli utenti possono effettuare l'accesso una volta e una seconda sessione raggiunge il sito come l'utente le cui credenziali sono state inserite.

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

Valutazione

Stack tecnologico
azure, flask, python
Ambito
authentication, backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.