|
1 | 1 | ---
|
2 | 2 | title: Authorization Code OAuth flow for SharePoint Add-ins
|
3 | 3 | description: The OAuth flow for add-ins that request permission to access SharePoint resources on the fly, and how to use the **OAuthAuthorize.aspx** page and the SharePoint redirect URI.
|
4 |
| -ms.date: 05/01/2020 |
| 4 | +ms.date: 06/15/2020 |
5 | 5 | ms.prod: sharepoint
|
6 | 6 | localization_priority: Priority
|
7 | 7 | ---
|
@@ -105,11 +105,11 @@ https://fabrikam.sharepoint.com/_layouts/15/OAuthAuthorize.aspx?
|
105 | 105 | As the example shows, the Contoso photo-printing add-in sends the OAuth client ID and redirect URI to the Fabrikam site as query string parameters. The following is an example of the GET request with sample query string values. The actual target URL is a single line.
|
106 | 106 |
|
107 | 107 | ```http
|
108 |
| -GET /authcode HTTP/1.1 |
109 |
| -Host: fabrikam.sharepoint.com/oauthauthorize.aspx?client_id= c78d058c-7f82-44ca-a077-fba855e14d38&scope=list.read&response_type=code&redirect_uri= https%3A%2F%2Fcontoso%2Ecom%2Fredirectaccept.aspx |
| 108 | +GET /_layouts/15/OAuthAuthorize.aspx?client_id=c78d058c-7f82-44ca-a077-fba855e14d38&scope=list.read&response_type=code&redirect_uri=https%3A%2F%2Fcontoso%2Ecom%2Fredirectaccept.aspx HTTP/1.1 |
| 109 | +Host: fabrikam.sharepoint.com |
110 | 110 | ```
|
111 | 111 |
|
112 |
| -If you want a separate consent pop-up dialog, you can add the query parameter **IsDlg=1** to the URL construct as shown here: `/oauthauthorize.aspx?IsDlg=1&client_id= c78d058c-7f82-44ca-a077-fba855e14d38&scope=list.read&response_type=code&redirect_uri= https%3A%2F%2Fcontoso%2Ecom%2Fredirectaccept.aspx` |
| 112 | +If you want a separate consent pop-up dialog, you can add the query parameter **IsDlg=1** to the URL construct as shown here: `/oauthauthorize.aspx?IsDlg=1&client_id=c78d058c-7f82-44ca-a077-fba855e14d38&scope=list.read&response_type=code&redirect_uri=https%3A%2F%2Fcontoso%2Ecom%2Fredirectaccept.aspx` |
113 | 113 |
|
114 | 114 | #### Step 3: SharePoint displays the consent page so the user can grant the add-in permissions
|
115 | 115 |
|
@@ -186,7 +186,7 @@ The _scope_ parameter value, `Web.Read List.Write`, is an example of how you wou
|
186 | 186 | If you're not using managed code, the scope aliases are used in the scope field in the redirect URL. For example:
|
187 | 187 |
|
188 | 188 | ```http
|
189 |
| -https://fabrikam.sharepoint.com/_layout/15/OAuthAuthorize.aspx?client_id=c78d058c-7f82-44ca-a077-fba855e14d38&scope=list.write&response_type=code&redirect_uri=https%3A%2F%2Fcontoso%2Ecom%2Fredirectaccept.aspx |
| 189 | +https://fabrikam.sharepoint.com/_layout/15/OAuthAuthorize.aspx?client_id=c78d058c-7f82-44ca-a077-fba855e14d38&scope=list.write&response_type=code&redirect_uri=https%3A%2F%2Fcontoso%2Ecom%2Fredirectaccept.aspx |
190 | 190 | ```
|
191 | 191 |
|
192 | 192 | > [!NOTE]
|
|
0 commit comments