mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-22 12:41:37 +01:00
feat(#1655): updated bruno-tests collection with an "inherit auht" request example
This commit is contained in:
parent
3c2cbe63c4
commit
7a635810b1
@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: inherit Bearer Auth 200
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{host}}/api/auth/bearer/protected
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: 200
|
||||
res.body.message: Authentication successful
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
bru.setEnvVar("foo", "bar");
|
||||
}
|
@ -3,7 +3,7 @@ headers {
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: none
|
||||
mode: bearer
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
@ -12,7 +12,7 @@ auth:basic {
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{bearerAuthToken}}
|
||||
token: {{bearer_auth_token}}
|
||||
}
|
||||
|
||||
docs {
|
||||
|
Loading…
Reference in New Issue
Block a user