mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-01 12:24:29 +01:00
29 lines
353 B
Plaintext
29 lines
353 B
Plaintext
meta {
|
|
name: Bearer Auth 200
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/api/auth/bearer/protected
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer your_secret_token
|
|
}
|
|
|
|
vars:pre-request {
|
|
a-c: foo
|
|
}
|
|
|
|
assert {
|
|
res.status: 200
|
|
res.body.message: Authentication successful
|
|
}
|
|
|
|
script:post-response {
|
|
bru.setEnvVar("foo", "bar");
|
|
}
|