diff options
| author | Tom Christie | 2013-02-12 23:13:48 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-02-12 23:13:48 +0000 |
| commit | b7a5c4b050ab5bd0125e6f7af4e0546c98125282 (patch) | |
| tree | cca57409b46419c8af419ee837d4b11b74117ae1 /docs/api-guide/authentication.md | |
| parent | 018298deb89628b39e1caeceecb414c1e27310da (diff) | |
| download | django-rest-framework-b7a5c4b050ab5bd0125e6f7af4e0546c98125282.tar.bz2 | |
Notes on creating a custom `obtain_auth_token` view. Fixes #641.
Diffstat (limited to 'docs/api-guide/authentication.md')
| -rw-r--r-- | docs/api-guide/authentication.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 9c899f17..8c1d1185 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -167,6 +167,8 @@ The `obtain_auth_token` view will return a JSON response when valid `username` a { 'token' : '9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b' } +Note that the default `obtain_auth_token` view explicitly uses JSON requests and responses, rather than using default renderer and parser classes in your settings. If you need a customized version of the `obtain_auth_token` view, you can do so by overriding the `ObtainAuthToken` view class, and using that in your url conf instead. + ## SessionAuthentication This authentication scheme uses Django's default session backend for authentication. Session authentication is appropriate for AJAX clients that are running in the same session context as your website. |
