mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-10 07:58:26 +01:00
25 lines
315 B
Plaintext
25 lines
315 B
Plaintext
|
meta {
|
||
|
name: Bearer Auth 200
|
||
|
type: http
|
||
|
seq: 1
|
||
|
}
|
||
|
|
||
|
get {
|
||
|
url: {{host}}/api/auth/bearer/protected
|
||
|
body: none
|
||
|
auth: bearer
|
||
|
}
|
||
|
|
||
|
auth:bearer {
|
||
|
token: {{bearer_auth_token}}
|
||
|
}
|
||
|
|
||
|
assert {
|
||
|
res.status: 200
|
||
|
res.body.message: Authentication successful
|
||
|
}
|
||
|
|
||
|
script:post-response {
|
||
|
bru.setEnvVar("foo", "bar");
|
||
|
}
|