diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2018-04-27 10:02:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-27 10:02:47 +0200 |
| commit | 4e29ce304e2295e6c68b2974945b1dc5aa0bc6d3 (patch) | |
| tree | e02342c52b803bb70ce73194f878e1153e9cf3df /webtest | |
| parent | 1084623064bdf6bf305467e2500db0b4413ec507 (diff) | |
| parent | 85b59444d7c9008afb7b9fe82fdbf315e4baffc8 (diff) | |
| download | webtest-4e29ce304e2295e6c68b2974945b1dc5aa0bc6d3.tar.gz | |
Merge pull request #191 from luhn/patch-1
Documentation bearer token and JWT authorization
Diffstat (limited to 'webtest')
| -rw-r--r-- | webtest/app.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webtest/app.py b/webtest/app.py index 1c19e94..5b7a3e5 100644 --- a/webtest/app.py +++ b/webtest/app.py @@ -184,8 +184,12 @@ class TestApp(object): self.JSONEncoder = json_encoder def get_authorization(self): - """Allow to set the HTTP_AUTHORIZATION environ key. Value should looks - like ``('Basic', ('user', 'password'))`` + """Allow to set the HTTP_AUTHORIZATION environ key. Value should look + like one of the following: + + * ``('Basic', ('user', 'password'))`` + * ``('Bearer', 'mytoken')`` + * ``('JWT', 'myjwt')`` If value is None the the HTTP_AUTHORIZATION is removed """ |
