You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+67-4Lines changed: 67 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,78 @@ This new library replaces the `Microsoft.Toolkit.Uwp.UI.Controls.Graph` package;
7
7
If you need similar controls for the Web, please use the [Microsoft Graph Toolkit](https://aka.ms/mgt).
8
8
9
9
## <aname="supported"></a> Supported SDKs
10
-
* TODO: Check 16299
10
+
11
+
* Windows 10 18362 (🚧 TODO: Check Lower SDKs)
12
+
* Android via [Uno.Graph-Controls](https://aka.ms/wgt-uno) use `Uno.Microsoft.Graph.Controls` package.
13
+
* 🚧 Coming Soon 🚧
14
+
* PeoplePicker control
15
+
* XAML Islands Sample
16
+
* iOS (Waiting on [MSAL#1378](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/pull/1378) merge should be 4.4.0?)
11
17
12
18
## <aname="documentation"></a> Getting Started
13
-
* TODO
19
+
20
+
Before using controls that access [Microsoft Graph](https://graph.microsoft.com), you will need to [register your application](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app) to get a **ClientID**.
21
+
22
+
> After finishing the initial registration page, you will also need to add an additional redirect URI. Clcik on "Add a Redirect URI" and check the `https://login.microsoftonline.com/common/oauth2/nativeclient` checkbox on that page. Then click "Save".
23
+
24
+
### Android Quick Start
25
+
26
+
To include the latest preview package in your Visual Studio environment, open your _Package Manager Console_ and type:
$"msal{ClientId}://auth", // Need to change redirectUri on Android for protocol registration from AndroidManifest.xml, ClientId needs to be updated there as well to match above.
You can use the `Scopes` property to preemptively request permissions from the user of your app for data your app needs to access from Microsoft Graph.
50
+
51
+
Then also update the `data` tag in your **AndroidManifest.xml** file:
You need this for the protocol redirect after the user authenticates.
58
+
59
+
**That's all you need to get started!**
60
+
61
+
You can add any of the controls now to your XAML pages like we've done in our [sample](SampleGraphApp/SampleGraphApp.Shared/MainPage.xaml).
62
+
63
+
You can use the `ProviderManager.Instance` to listen to changes in authentication status with the `ProviderUpdated` event or get direct access to the [.NET Graph Beta API](https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet) through `ProviderManager.Instance.GlobalProvider.Graph`, just be sure to check if the `GlobalProvider` has been set first and its `State` is `SignedIn`:
0 commit comments