1234567891011121314 |
- # -*- coding: utf-8 -*-
- from __future__ import unicode_literals
- from tastypie.authentication import Authentication
- class JWTAuthentication(Authentication):
- '''
- '''
- def is_authenticated(self, request, **kwargs):
- return True
- '''
- '''
- def get_identifier(self, request):
- return request.user.username
|