Skip to content

Commit

Permalink
Merge pull request encode#4497 from knaperek/fix-readme-token-model-name
Browse files Browse the repository at this point in the history
Rename an invalid reference to BasicToken in the docs
  • Loading branch information
xordoquy authored Sep 19, 2016
2 parents fe96cec + 76cc2f0 commit e82ee91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

* `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:

Expand Down

0 comments on commit e82ee91

Please sign in to comment.