Skip to content

Commit

Permalink
Update get access token.bru
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Jul 23, 2024
1 parent b568580 commit 9b9c835
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions graph-requests-samples/authentication/get access token.bru
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ meta {

get {
url:
body: formUrlEncoded
auth: oauth2
}

headers {
Content-Type: application/x-www-form-urlencoded
SdkVersion: postman-graph/v1.0
}

auth:oauth2 {
grant_type: client_credentials
access_token_url: https://login.microsoftonline.com/{{tenantPrefix}}.onmicrosoft.com/oauth2/v2.0/token
Expand All @@ -23,13 +17,6 @@ auth:oauth2 {
scope: https://graph.microsoft.com/.default
}

body:form-urlencoded {
grant_type: client_credentials
client_id: {{clientId}}
client_secret: {{clientSecret}}
scope: https://graph.microsoft.com/.default
}

vars:post-response {
accessToken: res.body.access_token
}

0 comments on commit 9b9c835

Please sign in to comment.