Exemplo n.º 1
0
def backends(request):
    """Load Social Auth current user data to context under the key 'backends'.
    Will return the output of social_core.backends.utils.user_backends_data."""
    return {
        'backends':
        LazyDict(lambda: user_backends_data(request.user, BACKENDS, Storage))
    }
Exemplo n.º 2
0
def backends():
    """Load Social Auth current user data to context under the key 'backends'.
    Will return the output of social.backends.utils.user_backends_data."""
    return {
        'backends':
        user_backends_data(current_user, get_helper('AUTHENTICATION_BACKENDS'),
                           get_helper('STORAGE', do_import=True))
    }
Exemplo n.º 3
0
def backends(request, user):
    """Load Social Auth current user data to context under the key 'backends'.
    Will return the output of social_core.backends.utils.user_backends_data."""
    storage = module_member(get_helper('STORAGE'))
    return {
        'backends':
        user_backends_data(user, get_helper('AUTHENTICATION_BACKENDS'),
                           storage)
    }
Exemplo n.º 4
0
def backends(request):
    """Load Social Auth current user data to context under the key 'backends'.
    Will return the output of social_core.backends.utils.user_backends_data."""
    return {'backends': LazyDict(lambda: user_backends_data(request.user,
                                                            BACKENDS,
                                                            Storage))}