22 lines
262 B
Plaintext
22 lines
262 B
Plaintext
meta {
|
|
name: Login
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/users/login
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"token": "{{$oauth2.credentials.id_token}}"
|
|
}
|
|
}
|
|
|
|
script:post-response {
|
|
bru.setEnvVar("token", res.getBody().data.token);
|
|
}
|