mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 18:44:00 +03:00
Update with pull request re: TokenAuthentication
parent
5d0fcdaaae
commit
ac0a332bd2
|
@ -28,10 +28,12 @@ Some of the gaps that need filling in:
|
||||||
|
|
||||||
## Okay, where should I start then?
|
## Okay, where should I start then?
|
||||||
|
|
||||||
### TokenBasicAuthentication.
|
### TokenAuthentication.
|
||||||
|
|
||||||
|
**See https://github.com/tomchristie/django-rest-framework/pull/249 for a first go.**
|
||||||
|
|
||||||
Take a look through the authentication docs. Take a look at the existing authentication classes.
|
Take a look through the authentication docs. Take a look at the existing authentication classes.
|
||||||
Implement TokenBasicAuthentication as a subclass of BasicAuthentication.
|
Implement TokenBasicAuthentication as a subclass of BasicAuthentication. **-- Actually not implemented with basic auth. Uses a custom scheme called "Token"**
|
||||||
It'll need implementing as an optional app, so that tokens are not always installed by default - user will add `djangorestframework.basicauthtoken` to `INSTALLED_APPS` if they want the token models in their database.
|
It'll need implementing as an optional app, so that tokens are not always installed by default - user will add `djangorestframework.basicauthtoken` to `INSTALLED_APPS` if they want the token models in their database.
|
||||||
|
|
||||||
### Bootstrap redesign of the browseable API
|
### Bootstrap redesign of the browseable API
|
||||||
|
|
Loading…
Reference in New Issue
Block a user