Skip to content

Commit 5018e57

Browse files
committed
SharePoint#5886 fix some auth code flow samples
1 parent ea80ad0 commit 5018e57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)