diff options
| author | Tom Christie | 2014-06-12 12:22:09 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-06-12 12:22:09 +0100 |
| commit | 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 (patch) | |
| tree | 6cc268279408148a61c95a63cad523dc0e6589a4 /api-guide/authentication.html | |
| parent | 03ddd237c93ea5b9159260c49fd856595dbea53c (diff) | |
| download | django-rest-framework-106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'api-guide/authentication.html')
| -rw-r--r-- | api-guide/authentication.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/authentication.html b/api-guide/authentication.html index f8e75399..89091469 100644 --- a/api-guide/authentication.html +++ b/api-guide/authentication.html @@ -287,7 +287,7 @@ WSGIPassAuthorization On <p><strong>Note:</strong> If you use <code>BasicAuthentication</code> in production you must ensure that your API is only available over <code>https</code>. You should also ensure that your API clients will always re-request the username and password at login, and will never store those details to persistent storage.</p> <h2 id="tokenauthentication">TokenAuthentication</h2> <p>This authentication scheme uses a simple token-based HTTP Authentication scheme. Token authentication is appropriate for client-server setups, such as native desktop and mobile clients.</p> -<p>To use the <code>TokenAuthentication</code> scheme, include <code>rest_framework.authtoken</code> in your <code>INSTALLED_APPS</code> setting:</p> +<p>To use the <code>TokenAuthentication</code> scheme you'll need to <a href="#setting-the-authentication-scheme">configure the authentication classes</a> to include <code>TokenAuthentication</code>, and additionally include <code>rest_framework.authtoken</code> in your <code>INSTALLED_APPS</code> setting:</p> <pre class="prettyprint lang-py"><code>INSTALLED_APPS = ( ... 'rest_framework.authtoken' |
