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

astakos: slight change in POST /tokens

Return the web login url also in the custom ``SNF:webloginURL``
attribute
parent 48ef168a
......@@ -426,6 +426,7 @@ Example json response:
"endpoints": [{
"SNF:uiURL": "https://accounts.example.synnefo.org/ui",
"versionId": "",
"SNF:webloginURL": "http://localhost:8080/astakos/weblogin"
"publicURL": "https://accounts.example.synnefo.org/astakos/weblogin"}],
"type": "astakos_weblogin",
"name": "astakos_weblogin"}],
......@@ -473,7 +474,7 @@ Example xml response:
<service type="object-store" name="pithos_object-store">
<endpoint SNF:uiURL="https://object-store.example.synnefo.org/ui" versionId="v1" publicURL="https://object-store.example.synnefo.org/pithos/object-store/v1" /> </service>
<service type="astakos_weblogin" name="astakos_weblogin">
<endpoint SNF:uiURL="htftps://accounts.example.synnefo.org/ui" versionId="" publicURL="https://accounts.example.synnefo.org/astakos/weblogin" />
<endpoint SNF:uiURL="htftps://accounts.example.synnefo.org/ui" versionId="" "SNF:webloginURL": "http://localhost:8080/astakos/weblogin" publicURL="https://accounts.example.synnefo.org/astakos/weblogin" />
</serviceCatalog>
</access>
......
......@@ -100,6 +100,8 @@ def authenticate(request):
for l in [e.data.values('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 s.name == 'astakos_weblogin':
endpoint["SNF:webloginURL"] = endpoint["publicURL"]
endpoints.append(endpoint)
append({"name": s.name,
"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