[Feature] Build a LoginButton control based on WebAccount metadata
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- csharp
- Lĩnh vực
- authentication, frontend
Hướng nghiên cứu
Bắt đầu trong gói CommunityToolkit.Authentication.Uwp bằng cách xem xét LoginButton và WindowsProvider hiện có, đặc biệt là đường dẫn LoadState. Tạo một control riêng biệt không có tham chiếu đến Graph SDK, đọc tên người dùng và ảnh từ một WebAccount; khi GlobalProvider không phải là một WindowsProvider, control phải bị vô hiệu hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the problem this feature would solve
Currently, the LoginButton uses Graph to request the user display name and image. This returns an experience that is consistent across surfaces that also use Graph data, but not necessarily consistent with Windows. Apps/services on Windows desktop use the details provided by the WebAccount object returned by the Windows platform.
We should offer a solution that is more inline with what the OS is doing. Added bonus is that it doesn't require a Graph request, so the button can be written entirely with Windows APIs, without any additional steps or explicit web requests.
Describe the solution
- In the
CommunityToolkit.Authentication.Uwppackage, create a new LoginButton based control- Copy code where it makes sense, don't build on top of the existing LoginButton to avoid taking dependency on Graph
- Remove references to the Graph SDK and swap the Graph
Userobject reference forWebAccountinstead. - Update the LoadState method to pull the WebAccount from an active WindowsProvider and load the username and photo.
- If the GlobalProvider is not an instance of WindowsProvider, disable the control.
- Ngôn ngữ chính
- C#
- Star
- 156
- Fork
- 37
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommunityToolkit/Graph-Controls
-
bug :bug:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
CommunityToolkit/Graph-Controls#211 · 3 bình luận ·
-
CommunityToolkit.Authentication.Msal use Microsoft Graph V4 but if you install V5,you cannot releaseĐang mởbug :bug: needs attention :wave: needs triage :mag:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
CommunityToolkit/Graph-Controls#208 · 20 bình luận ·
-
enhancement :sparkles:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
Area: Providers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
CommunityToolkit/Graph-Controls#195 · 1 bình luận ·
-
Area: Providers bug :bug:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
CommunityToolkit/Graph-Controls#189 · 3 bình luận ·
Tất cả issue của CommunityToolkit/Graph-Controls
Issue tương tự
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itĐang mởarea: core bug help wanted ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ZaidX88/sluice#265 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: remote bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Install a C# EnvironmentĐang mở📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CodeYourFuture/Module-Tools#712 ·
-
A: Mapping P3: Standard T: New Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
space-wizards/space-station-14#46878 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 60/100
CommunityToolkit/Windows#896 · 2 bình luận ·