forked from ISTI-ansible-roles/ansible-roles
library/roles/gcube/authorization_service/templates/AuthorizationConfiguration.xml.j2: New configuration template.
This commit is contained in:
parent
ea4dbb9407
commit
300f433655
|
@ -4,9 +4,21 @@
|
||||||
{% for ip in authorized_ips %}
|
{% for ip in authorized_ips %}
|
||||||
<Entity type="IP" value="{{ ip }}" />
|
<Entity type="IP" value="{{ ip }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule path="/apikey" requiresToken="true"/>
|
|
||||||
<Rule path="/policyManager" requiresToken="true"/>
|
<Rule path="/apikey" requiresToken="true" acceptedTokenTypes="USER"/>
|
||||||
<Rule path="/token/external" requiresToken="true"/>
|
<Rule path="/policyManager" requiresToken="true">
|
||||||
|
{% for ip in authorized_ips %}
|
||||||
|
<Entity type="IP" value="{{ ip }}" />
|
||||||
|
{% endfor %}
|
||||||
|
</Rule>
|
||||||
|
<Rule path="/token/external" requiresToken="true" acceptedTokenTypes="USER" />
|
||||||
|
<Rule path="/token/node" requiresToken="false" />
|
||||||
|
<Rule path="/token/service" requiresToken="true" acceptedTokenTypes="CONTAINER"/>
|
||||||
|
<Rule path="/token/resolve" requiresToken="false">
|
||||||
|
{% for ip in authorized_ips %}
|
||||||
|
<Entity type="IP" value="{{ ip }}" />
|
||||||
|
{% endfor %}
|
||||||
|
</Rule>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue