Skip to content

Commit 25dec7f

Browse files
Merge pull request SharePoint#5887 from mbakhoff/5886-auth-flow
SharePoint#5886 fix some auth code flow samples
2 parents ab8d66a + 0fa85c1 commit 25dec7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/sp-add-ins/authorization-code-oauth-flow-for-sharepoint-add-ins.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Authorization Code OAuth flow for SharePoint Add-ins
33
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
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -105,11 +105,11 @@ https://fabrikam.sharepoint.com/_layouts/15/OAuthAuthorize.aspx?
105105
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.
106106

107107
```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
110110
```
111111

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`
113113

114114
#### Step 3: SharePoint displays the consent page so the user can grant the add-in permissions
115115

@@ -186,7 +186,7 @@ The _scope_ parameter value, `Web.Read List.Write`, is an example of how you wou
186186
If you're not using managed code, the scope aliases are used in the scope field in the redirect URL. For example:
187187

188188
```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
190190
```
191191

192192
> [!NOTE]

0 commit comments

Comments
 (0)