Skip to content

Commit f9f5162

Browse files
jvdputtenrobinzelders
authored andcommitted
update docs token auth
1 parent dcbf985 commit f9f5162

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/plugins/tokenauth.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,29 @@ INSTALLED_APPS = [
1414
]
1515
```
1616

17+
Add middleware to `settings.py`:
18+
19+
```
20+
MIDDLEWARE = [
21+
...
22+
'binder.plugins.token_auth.middleware.TokenAuthMiddleware',
23+
...
24+
]
25+
```
26+
1727
Then run the migrations:
1828

1929
```
2030
./manage.py migrate
2131
```
2232

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+
2340
# Generate tokens
2441

2542

0 commit comments

Comments
 (0)