Skip to content

Commit

Permalink
Update to use oauth2 v2 to get access token
Browse files Browse the repository at this point in the history
  • Loading branch information
norelina committed May 12, 2023
1 parent d060b6e commit dc95f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified images/module10/rest01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions modules/module10.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ To invoke the REST API, we must first register an application (i.e. service prin
| Property | Value |
| --- | --- |
| HTTP Method | `POST` |
| URL | `https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/token` |
| URL | `https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token` |
| Body Type | `x-wwww-form-urlencoded` |

Navigate to **Body**, select `x-wwww-form-urlencoded` and provide the following key value pairs. Once HTTP request is ready, click **Send**. If successful, the response will contain an **access token**, copy this value for later use.
Expand All @@ -729,7 +729,7 @@ To invoke the REST API, we must first register an application (i.e. service prin
| grant_type | `client_credentials` |
| client_id | `YOUR_CLIENT_ID` |
| client_secret | `YOUR_CLIENT_SECRET` |
| resource | `https://purview.azure.net` |
| scope | `https://purview.azure.net/.default` |

![ALT](../images/module10/rest01.png)

Expand Down

0 comments on commit dc95f3e

Please sign in to comment.