class CustomApiKeyAuthentication(ApiKeyAuthentication):

    def is_authenticated(self, request, **kwargs):
        username = request.META.get('HTTP_X_MYAPP_USERNAME'
            ) or request.GET.get('username')
Send an authenticated POST request to tastypie