bruno/packages/bruno-tests/collection/auth/bearer/via headers/Bearer Auth 401.bru
2024-01-29 13:34:55 +05:30

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");
}