summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2018-04-26 16:12:06 -0700
committerTheron Luhn <theron@luhn.com>2018-04-26 16:18:19 -0700
commit85b59444d7c9008afb7b9fe82fdbf315e4baffc8 (patch)
treee02342c52b803bb70ce73194f878e1153e9cf3df /docs
parent1084623064bdf6bf305467e2500db0b4413ec507 (diff)
downloadwebtest-85b59444d7c9008afb7b9fe82fdbf315e4baffc8.tar.gz
Documentation bearer token and JWT authorization
Diffstat (limited to 'docs')
-rw-r--r--docs/testapp.rst9
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
------------------------------