Skip to content

Commit a4c8e56

Browse files
committed
Document keyword variable of TokenAuthentication
1 parent 628bbd5 commit a4c8e56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api-guide/authentication.md

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ For clients to authenticate, the token key should be included in the `Authorizat
143143

144144
Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b
145145

146+
**Note:** If you want to use a different keyword in the header, such as `Bearer`, simply subclass `TokenAuthentication` and set the `keyword` class variable.
147+
146148
If successfully authenticated, `TokenAuthentication` provides the following credentials.
147149

148150
* `request.user` will be a Django `User` instance.

0 commit comments

Comments
 (0)