mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Merge pull request #4497 from knaperek/fix-readme-token-model-name
Rename an invalid reference to BasicToken in the docs
This commit is contained in:
commit
e82ee91078
|
@ -148,7 +148,7 @@ For clients to authenticate, the token key should be included in the `Authorizat
|
||||||
If successfully authenticated, `TokenAuthentication` provides the following credentials.
|
If successfully authenticated, `TokenAuthentication` provides the following credentials.
|
||||||
|
|
||||||
* `request.user` will be a Django `User` instance.
|
* `request.user` will be a Django `User` instance.
|
||||||
* `request.auth` will be a `rest_framework.authtoken.models.BasicToken` instance.
|
* `request.auth` will be a `rest_framework.authtoken.models.Token` instance.
|
||||||
|
|
||||||
Unauthenticated responses that are denied permission will result in an `HTTP 401 Unauthorized` response with an appropriate WWW-Authenticate header. For example:
|
Unauthenticated responses that are denied permission will result in an `HTTP 401 Unauthorized` response with an appropriate WWW-Authenticate header. For example:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user