[java-identity-provider] branch main updated: Access control rules for testing.
Scott Cantor
cantor.2 at osu.edu
Mon Feb 28 19:29:33 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=88d6b3c162b4b207b6e3584f48158903a7425d18
The following commit(s) were added to refs/heads/main by this push:
new 88d6b3c16 Access control rules for testing.
88d6b3c16 is described below
commit 88d6b3c162b4b207b6e3584f48158903a7425d18
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Feb 28 14:29:29 2022 -0500
Access control rules for testing.
---
.../src/test/resources/conf/access-control.xml | 84 ++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/idp-conf/src/test/resources/conf/access-control.xml b/idp-conf/src/test/resources/conf/access-control.xml
new file mode 100644
index 000000000..767cc417a
--- /dev/null
+++ b/idp-conf/src/test/resources/conf/access-control.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:c="http://www.springframework.org/schema/c"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
+
+ default-init-method="initialize"
+ default-destroy-method="destroy">
+
+ <!--
+ Map of access control policies used to limit access to administrative functions.
+ The purpose of the map is to label policies with a key/name so they can be reused.
+ -->
+
+ <!--
+ Use the "shibboleth.IPRangeAccessControl" parent bean for IP-based access control.
+ The ranges provided MUST be CIDR network expressions. To specify a single address,
+ add "/32" or "/128" for IPv4 or IPv6 respectively.
+
+ The additional examples below demonstrate how to control access by username
+ and by attribute(s), in the case of authenticated access to admin functions.
+ -->
+
+ <util:map id="shibboleth.AccessControlPolicies">
+
+ <entry key="AccessByIPAddress">
+ <bean id="AccessByIPAddress" parent="shibboleth.IPRangeAccessControl"
+ p:allowedRanges="#{ {'127.0.0.1/32', '::1/128'} }" />
+ </entry>
+
+ <!--
+ <entry key="AccessByAdminUser">
+ <bean parent="shibboleth.PredicateAccessControl">
+ <constructor-arg>
+ <bean parent="shibboleth.Conditions.SubjectName" c:collection="#{'jdoe'}" />
+ </constructor-arg>
+ </bean>
+ </entry>
+ -->
+
+ <!--
+ <entry key="AccessByAttribute">
+ <bean parent="shibboleth.PredicateAccessControl">
+ <constructor-arg>
+ <bean class="net.shibboleth.idp.profile.logic.SimpleAttributePredicate">
+ <property name="attributeValueMap">
+ <map>
+ <entry key="eduPersonEntitlement">
+ <list>
+ <value>https://example.org/entitlement/idpadmin</value>
+ </list>
+ </entry>
+ </map>
+ </property>
+ </bean>
+ </constructor-arg>
+ </bean>
+ </entry>
+ -->
+
+ <entry key="GeneralImpersonationPolicy">
+ <bean parent="shibboleth.PredicateAccessControl">
+ <constructor-arg>
+ <bean parent="shibboleth.Conditions.SubjectName" c:collection="jdoe" />
+ </constructor-arg>
+ </bean>
+ </entry>
+
+ <entry key="SpecificImpersonationPolicy">
+ <bean parent="shibboleth.PredicateAccessControl">
+ <constructor-arg>
+ <bean parent="shibboleth.Conditions.SubjectName" c:collection="jdoe" />
+ </constructor-arg>
+ </bean>
+ </entry>
+
+ </util:map>
+
+</beans>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list