Skip to content

Commit 59235c8

Browse files
Merge pull request #106681 from darrelmiller/patch-2
Update v2-oauth2-client-creds-grant-flow.md
2 parents 9efed14 + 124cf55 commit 59235c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/active-directory/develop/v2-oauth2-client-creds-grant-flow.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ After you've acquired the necessary authorization for your application, proceed
149149

150150
```HTTP
151151
POST /{tenant}/oauth2/v2.0/token HTTP/1.1 //Line breaks for clarity
152-
Host: login.microsoftonline.com
152+
Host: login.microsoftonline.com:443
153153
Content-Type: application/x-www-form-urlencoded
154154
155155
client_id=535fb089-9ff3-47b6-9bfb-4f1264799865
@@ -175,7 +175,7 @@ curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'client_id=
175175

176176
```HTTP
177177
POST /{tenant}/oauth2/v2.0/token HTTP/1.1 // Line breaks for clarity
178-
Host: login.microsoftonline.com
178+
Host: login.microsoftonline.com:443
179179
Content-Type: application/x-www-form-urlencoded
180180
181181
scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
@@ -200,7 +200,7 @@ The parameters for the certificate-based request differ in only one way from the
200200

201201
```HTTP
202202
POST /{tenant}/oauth2/v2.0/token HTTP/1.1 // Line breaks for clarity
203-
Host: login.microsoftonline.com
203+
Host: login.microsoftonline.com:443
204204
Content-Type: application/x-www-form-urlencoded
205205
206206
scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
@@ -267,8 +267,8 @@ An error response (400 Bad Request) looks like this:
267267
Now that you've acquired a token, use the token to make requests to the resource. When the token expires, repeat the request to the `/token` endpoint to acquire a fresh access token.
268268

269269
```HTTP
270-
GET /v1.0/users
271-
Host: https://graph.microsoft.com
270+
GET /v1.0/users HTTP/1.1
271+
Host: graph.microsoft.com:443
272272
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5HVEZ2ZEstZnl0aEV1Q...
273273
```
274274
Try the following command in your terminal, ensuring to replace the token with your own.

0 commit comments

Comments
 (0)