Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

Commit 9137b25

Browse files
committed
Update readme.md
1 parent a32a99d commit 9137b25

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ NOTE: If you already have a user account in your Azure Active Directory tenant,
3737

3838
1. Sign in to the [Azure portal](https://portal.azure.com).
3939
2. On the top bar, click on your account and under the **Directory** list, choose the Active Directory tenant where you wish to register your application.
40-
2. Click on **More Services** in the left hand nav, and choose **Azure Active Directory**.
41-
3. Click on **Registered Applications** and choose **Add**.
42-
4. Enter a friendly name for the application, for example 'WebApp-GraphAPI' and select 'Web Application and/or Web API' as the Application Type. For the sign-on URL, enter the base URL for the sample, which is by default `https://localhost:44322/`. NOTE: It is important, due to the way Azure AD matches URLs, to ensure there is a trailing slash on the end of this URL. If you don't include the trailing slash, you will receive an error when the application attempts to redeem an authorization code. Click on **Create** to create the application.
43-
5. While still in the Azure portal, choose your application, click on **Settings** and choose **Properties**.
44-
6. Find the Application ID value and copy it to the clipboard.
45-
7. In the Reply URL, add the reply URL address used to return the authorization code returned during Authorization code flow. For example: "https://localhost:44322/"
46-
8. From the Settings menu, choose **Keys** and add a key - select a key duration of either 1 year or 2 years. When you save this page, the key value will be displayed, copy and save the value in a safe location - you will need this key later to configure the project in Visual Studio - this key value will not be displayed again, nor retrievable by any other means, so please record it as soon as it is visible from the Azure Portal.
47-
9. Configure Permissions for your application - in the Settings menu, choose the 'Required permissions' section, click on **Add**, then **Select an API**, and select 'Microsoft Graph' (this is the Graph API). Then, click on **Select Permissions** and select 'Access the directory as the signed-in user' and 'Sign in and read user profile'.
40+
3. Click on **More Services** in the left hand nav, and choose **Azure Active Directory**.
41+
4. Click on **App registrations** and choose **Add**.
42+
5. Enter a friendly name for the application, for example 'WebApp-GraphAPI' and select 'Web Application and/or Web API' as the Application Type. For the sign-on URL, enter the base URL for the sample, which is by default `https://localhost:44322/`. NOTE: It is important, due to the way Azure AD matches URLs, to ensure there is a trailing slash on the end of this URL. If you don't include the trailing slash, you will receive an error when the application attempts to redeem an authorization code. Click on **Create** to create the application.
43+
6. While still in the Azure portal, choose your application, click on **Settings** and choose **Properties**.
44+
7. Find the Application ID value and copy it to the clipboard.
45+
8. In the Reply URL, add the reply URL address used to return the authorization code returned during Authorization code flow. For example: "https://localhost:44322/"
46+
9. From the Settings menu, choose **Keys** and add a key - select a key duration of either 1 year or 2 years. When you save this page, the key value will be displayed, copy and save the value in a safe location - you will need this key later to configure the project in Visual Studio - this key value will not be displayed again, nor retrievable by any other means, so please record it as soon as it is visible from the Azure Portal.
47+
10. Configure Permissions for your application - in the Settings menu, choose the 'Required permissions' section, click on **Add**, then **Select an API**, and select 'Microsoft Graph' (this is the Graph API). Then, click on **Select Permissions** and select 'Access the directory as the signed-in user' and 'Sign in and read user profile'.
4848

4949
NOTE: the permission "Access the directory as the signed-in user" allows the application to access your organization's directory on behalf of the signed-in user - this is a delegation permission and must be consented by the Administrator for web apps (such as this demo app).
5050
The permission "Sign in and read user profile' profiles" allows users to sign in to the application with their organizational accounts and lets the application read the profiles of signed-in users, such as their email address and contact information - this is a delegation permission, and can be consented to by the user.
@@ -68,11 +68,11 @@ To deploy the sample to Azure Web Sites, you will create a web site, publish the
6868

6969
1. Sign in to the [Azure portal](https://portal.azure.com).
7070
2. Click New in the top left hand corner, select Web + Mobile --> Web App, select the hosting plan and region, and give your web site a name, e.g. webappgraphapi-contoso.azurewebsites.net. Click Create Web Site.
71-
4. Once the web site is created, click on it to manage it. For this set of steps, download the publish profile and save it. Other deployment mechanisms, such as from source control, can also be used.
72-
5. Switch to Visual Studio and go to the WebAppGraphAPI project. Right click on the project in the Solution Explorer and select Publish. Click Import, and import the publish profile that you just downloaded.
73-
6. On the Connection tab, update the Destination URL so that it is https, for example https://webappgraphapi-contoso.azurewebsites.net. Click Next.
74-
7. On the Settings tab, make sure Enable Organizational Authentication is NOT selected. Click Publish.
75-
8. Visual Studio will publish the project and automatically open a browser to the URL of the project. If you see the default web page of the project, the publication was successful.
71+
3. Once the web site is created, click on it to manage it. For this set of steps, download the publish profile and save it. Other deployment mechanisms, such as from source control, can also be used.
72+
4. Switch to Visual Studio and go to the WebAppGraphAPI project. Right click on the project in the Solution Explorer and select Publish. Click Import, and import the publish profile that you just downloaded.
73+
5. On the Connection tab, update the Destination URL so that it is https, for example https://webappgraphapi-contoso.azurewebsites.net. Click Next.
74+
6. On the Settings tab, make sure Enable Organizational Authentication is NOT selected. Click Publish.
75+
7. Visual Studio will publish the project and automatically open a browser to the URL of the project. If you see the default web page of the project, the publication was successful.
7676

7777
### Update the Application Configurations in the Directory Tenant
7878

0 commit comments

Comments
 (0)