Change docstring at custom restfw auth backend.
parent
31ac66b634
commit
bd77a001de
|
@ -5,7 +5,8 @@ from rest_framework.authentication import BaseAuthentication
|
||||||
|
|
||||||
class SessionAuthentication(BaseAuthentication):
|
class SessionAuthentication(BaseAuthentication):
|
||||||
"""
|
"""
|
||||||
Use Django's session framework for authentication without csrf.
|
Same as rest_framework.authentication.SessionAuthentication
|
||||||
|
but without csrf.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def authenticate(self, request):
|
def authenticate(self, request):
|
||||||
|
@ -21,6 +22,3 @@ class SessionAuthentication(BaseAuthentication):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return (user, None)
|
return (user, None)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue