29 lines
488 B
YAML
29 lines
488 B
YAML
info:
|
|
name: Token
|
|
type: http
|
|
seq: 2
|
|
|
|
http:
|
|
method: GET
|
|
url: "{{BASE_URL}}/{{SECTOR}}/token"
|
|
headers:
|
|
- name: Cookie
|
|
value: "{{REFRESH_COOKIE}}"
|
|
auth: inherit
|
|
|
|
runtime:
|
|
scripts:
|
|
- type: after-response
|
|
code: |-
|
|
function onResponse(res) {
|
|
let data = res.getBody();
|
|
bru.setEnvVar("BEARER_TOKEN", data.token);
|
|
}
|
|
onResponse(res);
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|