django-cas-server/cas_server/templates/cas_server/serviceValidate.xml

23 lines
688 B
XML

<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
<cas:authenticationSuccess>
<cas:user>{{username}}</cas:user>
<cas:attributes>
{% for key, value in attributes %} <cas:{{key}}>{{value}}</cas:{{key}}>
{% endfor %}
</cas:attributes>
{% for key, value in attributes %}
<cas:attribute name="{{key}}" value="{{value}}"/>
{% endfor %}
{% if proxyGrantingTicket %}
<cas:proxyGrantingTicket>{{proxyGrantingTicket}}</cas:proxyGrantingTicket>
{% endif %}
{% if proxies %}
<cas:proxies>
{% for proxy in proxies %}
<cas:proxy>{{proxy}}</cas:proxy>
{% endfor %}
</cas:proxies>
{% endif %}
</cas:authenticationSuccess>
</cas:serviceResponse>