()
return Response(
        'Could not verify your access level for that URL.\n'
        'You have to login with proper credentials', 401,
        {'WWW-Authenticate': 'Basic realm="docker-compose-ui"'})
Sends a 401 response that enables basic auth
Sends a 401 response that enables basic auth
Sends a 401 response that enables basic auth
def authenticate():
    """Sends a 401 response that enables basic auth"""
    return Response(
        'Could not verify your access level for that URL.\n'
        'You have to login with proper credentials', 401,
        {'WWW-Authenticate': 'Basic realm="docker-compose-ui"'})
def authenticate ( ) : return Response ( 'Could not verify your access level for that URL.\n' 'You have to login with proper credentials' , 401 , { 'WWW-Authenticate' : 'Basic realm="docker-compose-ui"' } )