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
{{ message }}
This repository was archived by the owner on Oct 10, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,15 +51,30 @@ If you want to run the iOS project in this sample, you'll need the following:
51
51
52
52
You can use the [Visual Studio Emulator for Android](https://www.visualstudio.com/features/msft-android-emulator-vs.aspx) if you want to run the Android project.
53
53
54
-
## Register and configure the app
55
-
56
-
The first thing you need to do is to register your app in the [Application Registration Portal](https://apps.dev.microsoft.com).
57
-
58
-
1. Sign in to the [Application Registration Portal](https://apps.dev.microsoft.com).
59
-
1. Choose **Add an app**.
60
-
1. Enter a name for the app and choose **Create**.
61
-
1. Choose **Add Platform**, then choose **Native Application**.
62
-
1. Choose **Save**.
54
+
## Register the application
55
+
56
+
1. Navigate to the [the Azure portal - App registrations](https://go.microsoft.com/fwlink/?linkid=2083908) to register your app. Login using a **Work or School Account**.
57
+
58
+
2. Select **New registration**. On the **Register an application** page, set the values as follows.
59
+
60
+
* Set **Name** to **Xamarin Native PropertyManager**.
61
+
* Set **Supported account types** to **Accounts in any organizational directory**.
62
+
* Leave **Redirect URI** empty.
63
+
* Choose **Register**.
64
+
65
+
3. On the **Xamarin Native PropertyManager** page, copy and save the values for the **Application (client) ID** and the **Directory (tenant) ID**. You will need them in step 7.
66
+
67
+
4. Select **Certificates & secrets** under **Manage**. Select the **New client secret** button. Enter a value in **Description**, select any option for **Expires** and choose **Add**.
68
+
69
+
5. Copy the client secret value before leaving the page. You will need it in the next step.
70
+
71
+
6. Open the sample solution in Visual Studio and then open the **Constants.cs** file. Change the **Tenant** string to the **Directory (tenant) ID** value you copied earlier. Similarly, change the **ClientIdForAppAuthn** string to the **Application (client) ID** value and change the **ClientSecret** string to the client secret value.
72
+
73
+
7. Return to the Azure Active Directory management center. Select **API permissions** and then select **Add a permission**. On the panel that appears, choose **Microsoft Graph** and then choose **Application permissions**.
74
+
75
+
8. Use the **Select permissions** search box to search for the following permissions: User.Read, Group.ReadWrite.All, Sites.Read.All, Files.ReadWrite.All, Tasks.ReadWrite, Directory.Read.All. Select the check box for each permission as it appears (note that the permissions will not remain visible in the list as you select each one). Select the **Add permissions** button at the bottom of the panel.
76
+
77
+
9. Choose the **Grant admin consent for [tenant name]** button. Select **Yes** for the confirmation that appears.
0 commit comments