Revision 8cb96389 snf-astakos-app/astakos/im/templates/api/access.xml

b/snf-astakos-app/astakos/im/templates/api/access.xml
2 2
{% load filters %}
3 3
<access xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 4
    xmlns="http://docs.openstack.org/identity/api/v2.0">
5
    <token id="{{access.token.id}}" expires="{{access.token.expires}}">
6
        <tenant id="{{access.token.tenant.id}}" name="{{access.token.tenant.name}}" />
5
    <token id="{{d.access.token.id}}" expires="{{d.access.token.expires}}">
6
        <tenant id="{{d.access.token.tenant.id}}" name="{{d.access.token.tenant.name}}" />
7 7
    </token>
8
    <user id="{{access.user.id}}" name="{{access.user.name}}">
8
    <user id="{{d.access.user.id}}" name="{{d.access.user.name}}">
9 9
        <roles>
10
            {% for r in access.user.roles %}
10
            {% for r in d.access.user.roles %}
11 11
                <role id="{{r.id}}" name="{{r.name}}"/>
12 12
            {% endfor %}
13 13
        </roles>
14 14
    </user>
15 15
    <serviceCatalog>
16
    {% for s in access.serviceCatalog %}
17
        <service type="{{s.type}}" name="{{s.name}}">
16
    {% for s in d.access.serviceCatalog %}
17
        <service type="{{s.type}}" name="{{s.name}}" SNF:uiURL="{{s.component.url}}">
18 18
            {% for e in s.endpoints %}
19 19
                <endpoint
20
                    region="{{e.region}}"
21
                    publicURL="{{e.publicURL}}"
22
                    adminURL="{{e.adminURL}}"
23
                    internalURL="{{e.internalURL}}"
24
                    SNF:uiURL="{{e|lookup:'SNF:uiURL'}}"/>
20
                    {% for k, v in e.items %}
21
                        {{k}}="{{v}}"
22
                    {% endfor %}
25 23
            {% endfor %}
26 24
        </service>
27 25
    {% endfor %}

Also available in: Unified diff