'Return a ``UserSocialAuth`` object for the given user based on this plugins ``auth_provider``.'

def get_auth_for_user(self, user, **kwargs):

    assert self.auth_provider, 'There    is    no    auth    provider    configured    for    this    plugin.'
    if (not user.is_authenticated()):
        return None
    try:
        return UserSocialAuth.objects.filter(user=user, provider=self.auth_provider)[0]
    except IndexError:
        return None
