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 Nov 16, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+20-22Lines changed: 20 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,25 +88,23 @@ To use the Microsoft Graph SDK snippets project, you need the following:
88
88
89
89
## Azure client application registration
90
90
91
-
92
-
1. Sign in to the [Application Registration portal](https://apps.dev.microsoft.com).
93
-
3. Click on the blue **Add an app** button on the right side of the page.
94
-
4. Give your application a name.
95
-
4._Un_-check **Let us help you get started** under the **Guided Setup** section
96
-
4. Click the blue **Create** button to create the registration.
97
-
5. Click the **Add Platform** button under the **Platforms** section and choose **Native Application**.
98
-
8. Configure Permissions for your application - Under **Microsoft Graph Permissions** click the blue **Add** button adjacent to **Delegated Permissions**
99
-
9. Add the following delegated permissions:
100
-
* Sign in and read user profile
101
-
* Have full access to all files user can access
102
-
* Have full access to user calendars
103
-
* Read and write access to user mail
104
-
* Send mail as a user
105
-
* Read user mail
106
-
* Read and write directory data
107
-
* Read all users' basic profiles
108
-
* Read and write all groups
109
-
13. Click **Save** in the bottom menu.
91
+
1. Navigate to the [Azure portal - App registrations](https://go.microsoft.com/fwlink/?linkid=2083908) page.
92
+
1. Select **New registration**.
93
+
1. When the **Register an application page** appears, enter your application's registration information:
94
+
- In the **Name** section, enter a meaningful application name that will be displayed to users of the app, for example `Android Java Snippets Sample`.
95
+
- In the **Supported account types** section, select **Accounts in any organizational directory**.
96
+
1. Select **Register** to create the application.
97
+
1. On the app **Overview** page, find the **Application (client) ID** value and record it for later. You'll need it to configure the Visual Studio configuration file for this project.
98
+
1. In the list of pages for the app, select **Manifest**, and:
99
+
- In the manifest editor, set the ``allowPublicClient`` property to **true**
100
+
- Select **Save** in the bar above the manifest editor.
101
+
1. In the list of pages for the app, select **API permissions**
102
+
- Click the **Add a permission** button and then,
103
+
- Ensure that the **Microsoft APIs** tab is selected
104
+
- In the *Commonly used Microsoft APIs* section, click on **Microsoft Graph**
105
+
- In the **Delegated permissions** section, ensure that the right permissions are checked. Use the search box if necessary.
> In [Configure the project](#configure-the-project), you'll be asked to copy some strings that are generated by the application registration portal. Be sure to stay on application registration page while you configure the project. The strings that you copy from the application registration will be pasted into the source code of the project.
@@ -120,8 +118,8 @@ To use the Microsoft Graph SDK snippets project, you need the following:
120
118
5. Respond to the dialog box ("Gradle Sync: Gradle settings for this project are not configured yet. Would you like the project to use the Gradle wrapper? ") by clicking the **OK** button to use the Gradle wrapper.
121
119
4. In the application registration page that you just visited, copy the custom redirect URI (`msal{application id as GUID}`) to the clipboard. **Be sure you don't copy `://auth`**
122
120
<br/>For example: `msal0575d7fe-8ec7-4925-9ce2-87074778a039` is copied and `://auth` is ignored.
123
-
4. Paste the clipboard contents in **app/src/main/AndroidManifest.xml**, line 42 to replace `ENTER_YOUR_CLIENT_ID` with the clipboard contents.
124
-
4. Copy the **GUID portion** of the custom redirect URI into **app/src/main/AndroidManifest.xml**, line 51 to replace `ENTER_YOUR_CLIENT_ID` with the clipboard contents.
121
+
4. Paste the clipboard contents in **app/src/main/AndroidManifest.xml**, line 41 to replace `ENTER_YOUR_CLIENT_ID` with the clipboard contents.
122
+
4. Copy the **GUID portion** of the custom redirect URI into **app/src/main/AndroidManifest.xml**, line 49 to replace `ENTER_YOUR_CLIENT_ID` with the clipboard contents.
125
123
126
124
## Run the project
127
125
After you've built the project you can run it on an emulator or device.
@@ -188,4 +186,4 @@ General questions about Microsoft Graph development should be posted to [Stack O
188
186
|1.0|Initial release|
189
187
|1.5|- MSAL authentication library replaced ADAL authentication library <br/> - Microsoft Graph SDK version 1.5|
190
188
191
-
Copyright (c) 2015 Microsoft. All rights reserved.
189
+
Copyright (c) 2019 Microsoft. All rights reserved.
0 commit comments