mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-02 04:43:54 +01:00
24 lines
440 B
Plaintext
24 lines
440 B
Plaintext
|
meta {
|
||
|
name: token
|
||
|
type: http
|
||
|
seq: 1
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
url:
|
||
|
body: none
|
||
|
auth: oauth2
|
||
|
}
|
||
|
|
||
|
auth:oauth2 {
|
||
|
grant_type: client_credentials
|
||
|
access_token_url: {{client_credentials_access_token_url}}
|
||
|
client_id: {{client_credentials_client_id}}
|
||
|
client_secret: {{client_credentials_client_secret}}
|
||
|
scope: {{client_credentials_scope}}
|
||
|
}
|
||
|
|
||
|
script:post-response {
|
||
|
bru.setEnvVar('client_credentials_access_token', res.body.access_token);
|
||
|
}
|