Azure-Samples / Azure-Samples/ms-identity-python-webapp
Question: How to detect authentication operation?
- 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ả
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?
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
Bắt đầu với decorator login_required và hành vi của callback/redirect URI được mô tả trong issue. Xác định xem thư viện có cung cấp một cách được hỗ trợ để nhận diện một ủy quyền Entra gần đây và thực hiện các thao tác trong lần đăng nhập đầu tiên hay không; hoàn thành khi có câu trả lời được ghi thành tài liệu hoặc một yêu cầu thay đổi có phạm vi rõ ràng.
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
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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
- 20/100