mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-16 07:17:24 +00:00
steps to create app
This commit is contained in:
parent
126f1d053f
commit
d9ecd098f5
@ -34,33 +34,38 @@ Before using the APIs, you’ll need to create an app that you’ll use to authe
|
||||
|
||||
## Create an app
|
||||
|
||||
1. Log on to [Azure](https://manage.windowsazure.com).
|
||||
1. Log on to [Azure](https://portal.azure.com).
|
||||
|
||||
2. Navigate to **Active Directory**.
|
||||
2. Navigate to **Azure Active Directory** > **App registrations** > **New application registration**.
|
||||
|
||||
3. Select the tenant you want to register this app in - you can have several tenants. You are advised to have at least one separate development or test tenant in addition to a production tenant.
|
||||

|
||||
|
||||
4. Go to the **Applications** tab and click **Add**.
|
||||
3. In the Create window, enter the following information then click **Create**.
|
||||
|
||||
5. Select **Add an application my organization is developing**.
|
||||

|
||||
|
||||

|
||||
- **Name:** WinATPGraph
|
||||
- **Application type:** Native
|
||||
- **Redirect URI:** `https://localhost`
|
||||
|
||||
6. Provide a name for the application and select **Native client application**.
|
||||
|
||||

|
||||
4. Navigate and select the newly created application.
|
||||

|
||||
|
||||
7. Provide the redirect URI.
|
||||
5. Click **All settings** > **Required permissions** > **Add**.
|
||||
|
||||

|
||||

|
||||
|
||||
8. Click **Configure**, then at the end of the page click **Add application**.
|
||||
6. Click **Select an API** > **Microsoft Graph**, then click **Select**.
|
||||
|
||||
9. Select **Microsoft Graph API**.
|
||||

|
||||
|
||||
10. Choose **Sign in and read user profile** from the Delegated Permissions dropdown.
|
||||
|
||||

|
||||
7. Click **Select permissions** and select **Sign in and read user profile** then click **Select**.
|
||||
|
||||

|
||||
|
||||
You can now use the code snippets in the following sections to query the API using the created app ID.
|
||||
|
||||
## Get an access token
|
||||
1. Get the Client ID from the application you created.
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
Loading…
x
Reference in New Issue
Block a user