mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-26 15:48:44 +01:00
21 lines
252 B
Plaintext
21 lines
252 B
Plaintext
meta {
|
|
name: Bearer Auth 401
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/api/auth/bearer/protected
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
assert {
|
|
res.status: 401
|
|
res.body.message: Unauthorized
|
|
}
|
|
|
|
script:post-response {
|
|
bru.setEnvVar("foo", "bar");
|
|
}
|