NB
Size: a a a
NB
DT
NB
DT
DT
class MyBackend:
def authenticate(self, request, username=None, password=None):
# Check the username/password and return a user.
authenticateкоторый принимает request
DT
DT
NB
DT
DT
NB
AUTHENTICATION_BACKENDS = [
'core.backends.JWTBackend',
]
NB
Authorization: Bearer blah-blah-blah
)KA
DT
NB
KA
DT