Commit 195d4d11 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

astakos: slight change in POST /tokens

Return the web login url also in the custom ``SNF:webloginURL``
parent 48ef168a
......@@ -426,6 +426,7 @@ Example json response:
"endpoints": [{
"SNF:uiURL": "",
"versionId": "",
"SNF:webloginURL": "http://localhost:8080/astakos/weblogin"
"publicURL": ""}],
"type": "astakos_weblogin",
"name": "astakos_weblogin"}],
......@@ -473,7 +474,7 @@ Example xml response:
<service type="object-store" name="pithos_object-store">
<endpoint SNF:uiURL="" versionId="v1" publicURL="" /> </service>
<service type="astakos_weblogin" name="astakos_weblogin">
<endpoint SNF:uiURL="htftps://" versionId="" publicURL="" />
<endpoint SNF:uiURL="htftps://" versionId="" "SNF:webloginURL": "http://localhost:8080/astakos/weblogin" publicURL="" />
......@@ -100,6 +100,8 @@ def authenticate(request):
for l in ['key', 'value') for e in s.endpoints.all()]:
endpoint = dict((d['key'], d['value']) for d in l)
endpoint["SNF:uiURL"] = s.component.url
if == 'astakos_weblogin':
endpoint["SNF:webloginURL"] = endpoint["publicURL"]
"type": s.type,
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