Skip to content

Commit

Permalink
update docs token auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdputten authored and robinzelders committed Apr 19, 2024
1 parent dcbf985 commit f9f5162
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/plugins/tokenauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,29 @@ INSTALLED_APPS = [
]
```

Add middleware to `settings.py`:

```
MIDDLEWARE = [
...
'binder.plugins.token_auth.middleware.TokenAuthMiddleware',
...
]
```

Then run the migrations:

```
./manage.py migrate
```

## Optional
If you want to make the Tokens available through the API, you can add the following to your `urls.py`:

```
import binder.plugins.token_auth.views
```

# Generate tokens


Expand Down

0 comments on commit f9f5162

Please sign in to comment.