[Feature] Build a LoginButton control based on WebAccount metadata

オープン
#126 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp

調査の方向性

CommunityToolkit.Authentication.Uwp パッケージで、既存の LoginButton と WindowsProvider、特に LoadState パスを調べることから始めます。Graph SDK への参照を持たない独立したコントロールを作成し、WebAccount からユーザー名と写真を読み取るようにします。GlobalProvider が WindowsProvider でない場合、コントロールは無効化されるようにします。

索引モデルが issue の本文から書いたものです。

説明

Area: Controls

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.Uwp package, 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 User object reference for WebAccount instead.
  • 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.
主要言語
C#
スター
156
フォーク
37
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommunityToolkit/Graph-Controls のほかの issue

CommunityToolkit/Graph-Controls の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。