-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce79951
commit 82894a8
Showing
16 changed files
with
71 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
curl 'http://bob:secret@localhost:8000/basic-authentication-per-request' | ||
curl 'http://localhost:8000/basic-authentication-per-request' -H 'Authorization: Basic Ym9iOnNlY3JldA==' | ||
curl 'http://localhost:8000/basic-authentication-per-request' -H 'Authorization: Basic Ym9iOnNlY3JldA==' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://bob:secret@localhost:8000/basic-authentication-per-request</span></span> | ||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span> | ||
<span class="raw"><span class="line">```You are authenticated```</span></span> | ||
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span> | ||
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/basic-authentication-per-request</span></span> | ||
<span class="line"><span class="string">Authorization</span><span>:</span> <span class="string">Basic Ym9iOnNlY3JldA==</span></span> | ||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span> | ||
<span class="raw"><span class="line">```You are authenticated```</span></span> | ||
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span> | ||
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/basic-authentication-per-request</span></span> | ||
<span class="line section-header">[BasicAuth]</span> | ||
<span class="line"><span class="string">bob</span><span>:</span><span class="string">secret</span></span> | ||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span> | ||
<span class="raw"><span class="line">```You are authenticated```</span></span> | ||
</span></span></code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
GET http://bob:secret@localhost:8000/basic-authentication-per-request | ||
HTTP/1.0 200 | ||
```You are authenticated``` | ||
|
||
GET http://localhost:8000/basic-authentication-per-request | ||
Authorization: Basic Ym9iOnNlY3JldA== | ||
HTTP/1.0 200 | ||
```You are authenticated``` | ||
|
||
GET http://localhost:8000/basic-authentication-per-request | ||
[BasicAuth] | ||
bob:secret | ||
HTTP/1.0 200 | ||
```You are authenticated``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"entries":[{"request":{"method":"GET","url":"http://bob:secret@localhost:8000/basic-authentication-per-request"},"response":{"version":"HTTP/1.0","status":200,"body":{"type":"raw-string","value":"You are authenticated"}}},{"request":{"method":"GET","url":"http://localhost:8000/basic-authentication-per-request","headers":[{"name":"Authorization","value":"Basic Ym9iOnNlY3JldA=="}]},"response":{"version":"HTTP/1.0","status":200,"body":{"type":"raw-string","value":"You are authenticated"}}},{"request":{"method":"GET","url":"http://localhost:8000/basic-authentication-per-request"},"response":{"version":"HTTP/1.0","status":200,"body":{"type":"raw-string","value":"You are authenticated"}}}]} |
4 changes: 2 additions & 2 deletions
4
integration/tests/user_in_url.py → ...tests/basic_authentication_per_request.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters