We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcbf985 commit f9f5162Copy full SHA for f9f5162
docs/plugins/tokenauth.md
@@ -14,12 +14,29 @@ INSTALLED_APPS = [
14
]
15
```
16
17
+Add middleware to `settings.py`:
18
+
19
+```
20
+MIDDLEWARE = [
21
+ ...
22
+ 'binder.plugins.token_auth.middleware.TokenAuthMiddleware',
23
24
+]
25
26
27
Then run the migrations:
28
29
30
./manage.py migrate
31
32
33
+## Optional
34
+If you want to make the Tokens available through the API, you can add the following to your `urls.py`:
35
36
37
+import binder.plugins.token_auth.views
38
39
40
# Generate tokens
41
42
0 commit comments