mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-29 03:13:45 +01:00
858536e13d
* feat(#1003): authorization_code grant type PKCE support, code cleanup.. --------- Co-authored-by: lohit-1 <lohit@usebruno.com>
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);
|
|
}
|