mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Typo. Authenticat<i>on
This commit is contained in:
parent
a8980892c4
commit
44dfa05397
|
@ -13,13 +13,13 @@ from djangorestframework.utils import as_tuple
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
'BaseAuthenticaton',
|
'BaseAuthentication',
|
||||||
'BasicAuthenticaton',
|
'BasicAuthentication',
|
||||||
'UserLoggedInAuthenticaton'
|
'UserLoggedInAuthentication'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class BaseAuthenticaton(object):
|
class BaseAuthentication(object):
|
||||||
"""
|
"""
|
||||||
All authentication classes should extend BaseAuthentication.
|
All authentication classes should extend BaseAuthentication.
|
||||||
"""
|
"""
|
||||||
|
@ -47,7 +47,7 @@ class BaseAuthenticaton(object):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
class BasicAuthenticaton(BaseAuthenticaton):
|
class BasicAuthentication(BaseAuthentication):
|
||||||
"""
|
"""
|
||||||
Use HTTP Basic authentication.
|
Use HTTP Basic authentication.
|
||||||
"""
|
"""
|
||||||
|
@ -78,7 +78,7 @@ class BasicAuthenticaton(BaseAuthenticaton):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
class UserLoggedInAuthenticaton(BaseAuthenticaton):
|
class UserLoggedInAuthentication(BaseAuthentication):
|
||||||
"""
|
"""
|
||||||
Use Django's session framework for authentication.
|
Use Django's session framework for authentication.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -56,8 +56,8 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
|
||||||
"""
|
"""
|
||||||
List of all authenticating methods to attempt.
|
List of all authenticating methods to attempt.
|
||||||
"""
|
"""
|
||||||
authentication = ( authentication.UserLoggedInAuthenticaton,
|
authentication = ( authentication.UserLoggedInAuthentication,
|
||||||
authentication.BasicAuthenticaton )
|
authentication.BasicAuthentication )
|
||||||
|
|
||||||
"""
|
"""
|
||||||
List of all permissions that must be checked.
|
List of all permissions that must be checked.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user