Revision 8df4fae6 snf-pithos-app/pithos/api/delegate.py
b/snf-pithos-app/pithos/api/delegate.py | ||
---|---|---|
43 | 43 |
from django.utils.http import urlencode |
44 | 44 |
from django.views.decorators.csrf import csrf_exempt |
45 | 45 |
|
46 |
from pithos.api.settings import ( |
|
47 |
AUTHENTICATION_USERS, USER_LOGIN_URL, USER_FEEDBACK_URL, USER_CATALOG_URL)
|
|
46 |
from pithos.api.settings import (USER_LOGIN_URL, USER_FEEDBACK_URL,
|
|
47 |
USER_CATALOG_URL)
|
|
48 | 48 |
|
49 | 49 |
from synnefo.lib.pool.http import PooledHTTPConnection |
50 | 50 |
|
... | ... | |
53 | 53 |
|
54 | 54 |
def delegate_to_login_service(request): |
55 | 55 |
url = USER_LOGIN_URL |
56 |
users = AUTHENTICATION_USERS |
|
57 |
if users or not url: |
|
56 |
if not url: |
|
58 | 57 |
return HttpResponseNotFound() |
59 | 58 |
|
60 | 59 |
p = urlparse(url) |
Also available in: Unified diff