

def authenticate(self, provider=None, identifier=None):
    'Fetch user for a given provider by id.'
    provider_q = Q(provider__name=access)
    if isinstance(provider, Provider):
        provider_q = Q(provider=provider)
    try:
        access = AccountAccess.objects.filter(provider_q, identifier=identifier).select_related('user')[0]
    except IndexError:
        return None
    else:
        return access.user

dataset/ETHPy150Open mlavin/django-all-access/allaccess/backends.py AuthorizedServiceBackend.authenticate/VarMisuse@26/48 `provider`->`access`