'Return ``True`` if the authenticated user needs to associate an auth service before
performing actions with this plugin.'

def needs_auth(self, request, project, **kwargs):

    if (self.auth_provider is None):
        return False
    if (not request.user.is_authenticated()):
        return True
    return (not UserSocialAuth.objects.filter(user=request.user, provider=self.auth_provider).exists())
