compact xml

This commit is contained in:
Valentin Samir 2015-06-01 23:53:05 +02:00
parent 44cbf0f2b8
commit 4cfd29942b

View file

@ -3,20 +3,12 @@
<cas:user>{{username}}</cas:user> <cas:user>{{username}}</cas:user>
<cas:attributes> <cas:attributes>
{% for key, value in attributes %} <cas:{{key}}>{{value}}</cas:{{key}}> {% for key, value in attributes %} <cas:{{key}}>{{value}}</cas:{{key}}>
{% endfor %} {% endfor %} </cas:attributes>
</cas:attributes> {% for key, value in attributes %} <cas:attribute name="{{key}}" value="{{value}}"/>
{% for key, value in attributes %} {% endfor %}{% if proxyGrantingTicket %}
<cas:attribute name="{{key}}" value="{{value}}"/> <cas:proxyGrantingTicket>{{proxyGrantingTicket}}</cas:proxyGrantingTicket>{% endif %}
{% endfor %} {% if proxies %} <cas:proxies>{% for proxy in proxies %}
{% if proxyGrantingTicket %} <cas:proxy>{{proxy}}</cas:proxy>{% endfor %}
<cas:proxyGrantingTicket>{{proxyGrantingTicket}}</cas:proxyGrantingTicket> </cas:proxies>{% endif %}
{% endif %}
{% if proxies %}
<cas:proxies>
{% for proxy in proxies %}
<cas:proxy>{{proxy}}</cas:proxy>
{% endfor %}
</cas:proxies>
{% endif %}
</cas:authenticationSuccess> </cas:authenticationSuccess>
</cas:serviceResponse> </cas:serviceResponse>