Andrew Conti
f25f05dde5
Update authentication.md
...
Based on the [new documentation](https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.get_user_model ) for Django 1.7 we should now use:
```python
@receiver(post_save, sender=settings.AUTH_USER_MODEL)
```
instead of:
```python
@receiver(post_save, sender=get_user_model())
```
because `get_user_model()` only works once Django has imported all models. Otherwise you'll get:
```python
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
```
When trying to start your sever after adding token authentication.
From the Docs, ( linked above as well ) :
>New in Django 1.7:
>When connecting to signals sent by the User model, you should specify the custom model using the AUTH_USER_MODEL setting.
2014-10-29 16:31:36 -04:00
konradhalas
113a28ed8a
Add djoser to authentication docs.
2014-10-16 13:48:18 +02:00
Collin Anderson
da385c9c1f
remove patterns and strings from urls #1898
2014-09-23 17:10:02 -04:00
Jharrod LaFon
baa518cd89
Moved OAuth support out of DRF and into a separate package, per #1767
2014-09-05 15:30:01 -07:00
Carlton Gibson
556948661a
Improve wording.
2014-08-18 13:54:46 +02:00
Carlton Gibson
db4426fc35
Alter other reference to migrations.
2014-08-18 13:52:57 +02:00
Carlton Gibson
ae2ab496c2
Updated docs for South v1.0
2014-08-18 13:48:46 +02:00
Carlton Gibson
d98245ac22
Merge branch '2.4.0' of github.com:tomchristie/django-rest-framework into #1559
...
Conflicts:
docs/topics/release-notes.md
2014-06-24 10:30:08 +02:00
Carlton Gibson
3f727ce738
Added (first pass) notes to docs & release notes. Backed out SOUTH_MIGRATION_MODULES
setting from rest_framework.settings
2014-06-24 09:02:44 +02:00
Tom Christie
a7ff51118f
Note on configuring TokenAuthentication
2014-05-29 14:33:16 +01:00
Kumar McMillan
c2cd610b15
Adds HawkREST to 3rd party auth docs
2014-02-28 16:52:47 -06:00
Kumar McMillan
a4470c4276
Fix trailing whitespace
...
Sorry, my editor does this automatically
2014-02-28 16:51:32 -06:00
Elvio Toccalino
1a4c6f075b
include djangorestframework-httpsignature in the docs
2014-02-20 01:07:39 -03:00
José Padilla
1c34051f5e
Include the djangorestframework-jwt package
2014-01-18 23:51:18 -05:00
OddBloke
4f473f0b9e
Use get_user_model instead of User in Generating Tokens example
...
Because that's a better way of doing it.
2013-12-11 13:56:56 +00:00
OddBloke
5acefd3b17
Add full required imports to Generating Tokens example
...
Previously we were missing User and post_save.
2013-12-11 13:55:54 +00:00
erkarl
f72488d609
Updated OAuth2 authentication docs.
2013-10-31 03:47:23 +02:00
Kevin Brown
d0123a1385
Changed DOAC documentation link
2013-09-02 10:23:54 -04:00
Tom Christie
5e40e50f2b
Include import paths throughout docs.
...
Closes #1051 . Thanks to @pydanny for the report.
2013-08-21 19:46:09 +01:00
James Rutherford
195b1af7ba
Minor typo fix
2013-07-29 10:16:51 +01:00
James Rutherford
1a4ff1567e
Updated authtoken docs to mention south migrations
2013-07-29 10:16:15 +01:00
Tom Christie
5c4bf5309d
Docs about migrations and post_save
.
...
Documentation detailing requirement to migrate prior to running `createsuperuser` if using an authtoken `post_save` signal.
Closes #987 . Thanks to @yprez.
2013-07-29 09:08:35 +01:00
Tom Christie
e7529b4072
Fix broken link by hacking around md->html translating
2013-07-02 16:22:22 +01:00
Tom Christie
8d410c4671
Tweak text
2013-07-01 17:32:06 +01:00
Tom Christie
8274ff7d9c
Capitalization on OAuth
2013-07-01 17:27:23 +01:00
Tom Christie
53dc98eefb
Added Django OAuth2 Consumer package
2013-07-01 17:22:42 +01:00
Tom Christie
aa706f581c
Add Django OAuth Toolkit to docs
2013-06-17 09:27:12 +01:00
Tom Christie
6e0567c271
request.user should be still be accessible in renderer context if authentication fails
2013-06-03 12:32:57 +01:00
Stephan Groß
7a570e16e9
Fix md formatting and typos
2013-05-28 17:13:12 +02:00
Tom Christie
e301e2d974
Adding 'view or viewset' to docs appropriate.
2013-04-26 14:03:26 +01:00
Victor Shih
b73dfb9cc1
Remove redundant text.
2013-04-11 01:48:25 -07:00
Tom Christie
399ac70b83
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
2013-03-30 15:40:11 +00:00
Tom Christie
d243538547
Note on using curl with token auth
2013-03-28 14:54:42 +00:00
Fernando Rocha
b2cea84fae
Complete remove of client checks from oauth2
...
Signed-off-by: Fernando Rocha <fernandogrd@gmail.com>
2013-03-27 19:00:36 -03:00
Tom Christie
a34f45b06e
Docs polishing.
2013-03-09 00:31:19 +00:00
Tom Christie
e42e49852d
Tweak docs
2013-03-07 19:49:36 +00:00
Tom Christie
a4b33992a5
Merge OAuth2 work.
2013-03-07 17:43:13 +00:00
Tom Christie
d4e3610e71
Merge & clean OAuth support
2013-03-07 09:01:53 +00:00
Pierre Dulac
30e3775b8b
Update the documentation
...
with a warning for incompatibility with Python 3
and taking @tomchristie advice into account on how to reformulate some
sentences
2013-03-06 19:16:57 +01:00
Stephan Groß
7464def4e3
Fix typo
2013-03-05 18:42:31 +01:00
Tom Christie
6e7ddd579b
Docs tweak.
2013-03-05 17:39:34 +00:00
Tom Christie
6c2dbf1220
Minor docs tweak
2013-03-05 14:03:28 +00:00
Stephan Groß
b4c9b68c96
Add note for using authtoken with custom django user model and south
2013-03-04 14:09:59 +01:00
Pierre Dulac
653fcf7e33
Use the correct doc link style
2013-03-01 12:02:03 +01:00
Pierre Dulac
aed3c13471
Merge branch 'master' into oauth2-authentication
...
Conflicts:
rest_framework/tests/authentication.py
2013-03-01 11:50:11 +01:00
Pierre Dulac
d8f455bc0f
Add OAuth2Authentication documentation
2013-03-01 02:09:52 +01:00
Tom Christie
13b3af0d22
Auth is no longer lazy. Closes #667 .
...
More consistent auth failure behavior.
2013-02-28 17:58:58 +00:00
swistakm
2eabc5c2b4
rfc5849 link with anchor
2013-02-27 11:02:50 +01:00
swistakm
5d9ed34e41
add OAuthAuthentication documentation stub
2013-02-25 17:41:34 +01:00
Ryan Detzel
cd9a192027
method fix for custom authentication
2013-02-23 23:32:47 +01:00
Tom Christie
b7a5c4b050
Notes on creating a custom obtain_auth_token
view. Fixes #641 .
2013-02-12 23:13:48 +00:00
Tom Christie
7ffb2435ca
Add link to djangorestframework-digestauth
2013-02-07 21:23:10 +00:00
swistakm
661c8f9ad5
fix mistake in docs
2013-01-28 13:05:52 +01:00
Michael Elovskikh
499d6424ae
Merge branch 'upstream_master' into docs_patch_method
...
Conflicts:
docs/api-guide/authentication.md
2013-01-28 16:26:16 +06:00
Tom Christie
e649f2ec61
Example custom authentication. Fixes #301 .
2013-01-28 07:36:57 +00:00
Tom Christie
b7ab2aee46
Merge branch 'master' into unauthenticated_response
...
Conflicts:
docs/api-guide/authentication.md
2013-01-22 09:11:38 +00:00
Tom Christie
65b62d64ec
WWW-Authenticate responses
2013-01-21 21:29:49 +00:00
Bruno Renié
9b9b6529bc
Fixed reference to authtoken in the docs
2013-01-20 14:49:07 +01:00
Tom Christie
73b69b9bb6
Rephrasing.
2013-01-18 22:26:36 +00:00
Michael Elovskikh
ed13754859
Added PATCH HTTP method to the docs
2013-01-17 17:17:53 +06:00
Federico Capoano
f19d4ea8b1
Update docs/api-guide/authentication.md
...
refined mod_wsgi
2013-01-16 17:17:07 +01:00
Federico Capoano
55cc745254
Update docs/api-guide/authentication.md
...
Added mod_wsgi specific instructions
2013-01-16 17:10:46 +01:00
Stephan Groß
919c5e1e01
Fix typo in permission_classes
2013-01-11 20:26:44 +01:00
Tom Christie
cb235977f6
Include CSRF note in SessionAuthentication docs.
2013-01-09 09:22:23 +00:00
Tom Christie
36fa722ebb
Merged to latest master
2013-01-07 21:04:52 +00:00
Pavel Savchenko
fd383b2b5e
Fix location of obtain_auth_token view
2012-11-28 11:58:34 +02:00
Tom Christie
a44a94dd6e
More docs tweaking.
2012-11-19 22:08:38 +00:00
Tom Christie
ce5b186ca8
Docs tweaks.
2012-11-19 21:42:33 +00:00
Rob Romano
321ba156ca
Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example.
2012-11-14 12:51:00 -08:00
Rob Romano
eb20b5663e
Added documentation on how to use the token authentication login view.
2012-11-14 12:48:03 -08:00
Stephan Groß
1e83b60a43
added description how to use the auth token
2012-11-14 18:00:59 +01:00
Tom Christie
957700ecfb
Remove OAuth2 from docs
2012-11-13 11:26:45 +00:00
Tom Christie
8953a60196
Merge with master
2012-11-09 13:49:52 +00:00
Otto Yiu
96dc9ce1ad
Fixing documentation on auth/throttling guides
2012-10-31 21:27:21 -07:00
Stephan Groß
ff4804a360
fix api_view decorator useage
2012-10-29 09:25:17 +01:00
Marko Tibold
71a93930fd
Fixing spelling errors.
2012-10-21 16:34:07 +02:00
Tom Christie
fed235dd01
Make settings consistent with corrosponding view attributes
2012-10-17 23:09:11 +01:00
Tom Christie
b78872b7db
Use two seperate exceptions - AuthenticationFailed
, and NotAuthenticated
...
Cleaner seperation of exception and resulting HTTP response.
Should result in more obvious error messages.
2012-10-17 15:23:36 +01:00
Tom Christie
a4d500ba10
Use correct status code
2012-10-17 15:10:11 +01:00
Tom Christie
5ae49a4ec4
Add docs for 401 vs 403 responses
2012-10-17 14:59:53 +01:00
Tom Christie
bd8360c826
Highlight use of permissions alnog with authentication
2012-10-17 14:02:30 +01:00
Tom Christie
9c1fba3483
Tweak parsers to take parser_context
2012-10-15 13:27:50 +01:00
Tom Christie
3e862c7737
Tweak view slightly
2012-10-05 14:22:02 +01:00
Tom Christie
43d3634e89
Docs tweaking
2012-09-30 15:55:24 +01:00
Tom Christie
4b691c4027
Change package name: djangorestframework -> rest_framework
2012-09-20 13:06:27 +01:00
Tom Christie
b16c45aa6d
Tweak throttling/permissions/auth docs
2012-09-13 09:39:16 +01:00
Tom Christie
003a65f0e0
Tweaks to Token auth
2012-09-12 20:39:22 +01:00
Tom Christie
c85f799ade
Updating docs
2012-09-12 10:12:13 +01:00
Tom Christie
247696e820
Links to source files in docs
2012-09-08 22:06:13 +01:00
Mjumbe Wawatu Poe
8df71f4d1d
Get rid of the BaseToken abstract model
2012-09-07 16:19:15 -04:00
Mjumbe Wawatu Poe
f741cdae44
Move TokenAuthentication class into djangorestframework.authentication
2012-09-07 16:15:33 -04:00
Mjumbe Wawatu Poe
3b1404bd7d
Rename the default token class to "BasicToken"
2012-09-07 14:23:53 -04:00
Mjumbe Wawatu Poe
36cd91bbbe
Update docs for tokenauth
2012-09-07 14:12:46 -04:00
Tom Christie
224b538b31
Tidying up docs
2012-09-05 21:14:00 +01:00
Tom Christie
3a106aed79
Flesh out authentication docs
2012-09-05 20:10:06 +01:00
Tom Christie
ef5279e97c
Improve docs
2012-09-05 13:03:55 +01:00
Tom Christie
40d1821f2d
Add missing doc files
2012-09-05 10:01:43 +01:00