library/roles/gcube/authorization_service/templates/AuthorizationConfiguration.xml.j2: Manage the case when no authorized IPs are present.

This commit is contained in:
Andrea Dell'Amico 2017-05-17 18:22:35 +02:00
parent e545562d26
commit 33afc41859
1 changed files with 2 additions and 0 deletions

View File

@ -16,9 +16,11 @@
<Rule path="/token/node" requiresToken="false" />
<Rule path="/token/service" requiresToken="true" acceptedTokenTypes="CONTAINER"/>
<Rule path="/token/resolve" requiresToken="false">
{% if authorized_ips is defined %}
{% for ip in authorized_ips %}
<Entity type="IP" value="{{ ip }}" />
{% endfor %}
{% endif %}
</Rule>
</Configuration>