Commit 625bd291 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

snf-cyclades-app: Use the new AstakosClient

Change AstakosClient to use ASTAKOS_AUTH_URL as entry point to the
Astakos service, instead of ASTAKOS_BASE_URL it was using until now.

Remove ASTAKOS_BASE_URL from Cyclades settings, replace it with
ASTAKOS_AUTH_URL. Modify Cyclades to determine ASTAKOS_ACCOUNT_URL and
ASTAKOS_UI_URL with calls to astakosclient.
parent f041ab50
......@@ -77,7 +77,7 @@ class View(object):
Main entry point for a request-response process.
"""
def view(request, *args, **kwargs):
get_user(request, settings.ASTAKOS_BASE_URL)
get_user(request, settings.ASTAKOS_AUTH_URL)
if not request.user_uniq:
return HttpResponse(status=401)
self = cls(*initargs, **initkwargs)
......
......@@ -69,7 +69,7 @@ def generate_key_pair(request):
Response to generate private/public RSA key pair
"""
get_user(request, settings.ASTAKOS_BASE_URL)
get_user(request, settings.ASTAKOS_AUTH_URL)
if request.method != "POST":
return http.HttpResponseNotAllowed(["POST"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment