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

Being asked to log-in twice

Abierto
#160 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Answered
Lenguaje dominante
PowerShell
Estrellas
324
Forks
145
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

No se nombran archivos fuente ni pruebas. Empieza por reproducir el flujo de la aplicación Flask con sesiones normales y de incógnito separadas, configuradas con las variables de Azure, e inspecciona las redirecciones y las cookies en la aplicación y en login.microsoftonline.com. Se considera terminado cuando los usuarios pueden iniciar sesión una vez y una segunda sesión llega al sitio como el usuario cuyas credenciales se introdujeron.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, flask, python
Área
authentication, backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.