diff options
| author | Theron Luhn <theron@luhn.com> | 2018-04-26 16:12:06 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2018-04-26 16:18:19 -0700 |
| commit | 85b59444d7c9008afb7b9fe82fdbf315e4baffc8 (patch) | |
| tree | e02342c52b803bb70ce73194f878e1153e9cf3df /docs | |
| parent | 1084623064bdf6bf305467e2500db0b4413ec507 (diff) | |
| download | webtest-85b59444d7c9008afb7b9fe82fdbf315e4baffc8.tar.gz | |
Documentation bearer token and JWT authorization
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/testapp.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/testapp.rst b/docs/testapp.rst index 430d0a9..911daca 100644 --- a/docs/testapp.rst +++ b/docs/testapp.rst @@ -105,7 +105,14 @@ dictionary: app = TestApp(my_app) app.authorization = ('Basic', ('user', 'password')) -Only Basic auth is supported for now. +You can also use bearer token or JWT authorization types: + +.. code-block:: python + + app = TestApp(my_app) + app.authorization = ('Bearer', 'mytoken') + # or + app.authorization = ('JWT', 'myjwt') Testing a non wsgi application ------------------------------ |
