library/roles/gcube/authorization_service/templates/AuthorizationConfiguration.xml.j2: Manage the case when no authorized IPs are present.
This commit is contained in:
parent
e545562d26
commit
33afc41859
|
@ -16,9 +16,11 @@
|
||||||
<Rule path="/token/node" requiresToken="false" />
|
<Rule path="/token/node" requiresToken="false" />
|
||||||
<Rule path="/token/service" requiresToken="true" acceptedTokenTypes="CONTAINER"/>
|
<Rule path="/token/service" requiresToken="true" acceptedTokenTypes="CONTAINER"/>
|
||||||
<Rule path="/token/resolve" requiresToken="false">
|
<Rule path="/token/resolve" requiresToken="false">
|
||||||
|
{% if authorized_ips is defined %}
|
||||||
{% for ip in authorized_ips %}
|
{% for ip in authorized_ips %}
|
||||||
<Entity type="IP" value="{{ ip }}" />
|
<Entity type="IP" value="{{ ip }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</Rule>
|
</Rule>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue