diff options
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' |
