Azure-Samples / Azure-Samples/ms-identity-python-webapp
Being asked to log-in twice
- Ngôn ngữ chính
- PowerShell
- Star
- 324
- Fork
- 145
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Không có tệp mã nguồn hoặc bài kiểm thử nào được nêu tên. Hãy bắt đầu bằng cách tái hiện luồng của ứng dụng Flask với các phiên thông thường và ẩn danh riêng biệt, được cấu hình bằng các biến Azure, đồng thời kiểm tra các chuyển hướng và cookie trong ứng dụng cũng như trên login.microsoftonline.com. Công việc được xem là hoàn tất khi người dùng có thể đăng nhập một lần và một phiên thứ hai truy cập trang web với tư cách người dùng có thông tin xác thực đã được nhập.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, flask, python
- Lĩnh vực
- authentication, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100