Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleattribute-filter.xml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>

<AttributeFilterPolicyGroup id="ShibbolethFilterPolicy"
        	xmlns="urn:mace:shibboleth:2.0:afp"
        	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:mace:shibboleth:2.0:afp http://shibboleth.net/schema/idp/shibboleth-afp.xsd">

	<!-- REFEDS ReleaseAnonymous theAuthorization transientEntity IDCategory to anyone -->
	<AttributeFilterPolicy id="releaseTransientIdToAnyonereleaseToRefedsAnonymous">
        		<PolicyRequirementRule xsi:type="ANYEntityAttributeExactMatch" />

        <AttributeRule attributeID="transientId">
                attributeName="http://macedir.org/entity-category" attributeValue="https://refeds.org/category/anonymous" />
		<AttributeRule attributeID="eduPersonScopedAffiliation">
			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
</AttributeFilterPolicy>

<!-- GEANT Data protection Code of Conduct -->
<AttributeFilterPolicy id="releaseToCoCo">
        <PolicyRequirementRule 		<AttributeRule attributeID="schacHomeOrganization">
			<PermitValueRule xsi:type="EntityAttributeExactMatchANY"/>
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- REFEDS Pseudonymous Authorization Entity Category -->
	<!-- Supports data minimalisation to prevent use together with anonymous -->
	<AttributeFilterPolicy id="releaseToRefedsPseudonymous">
		<PolicyRequirementRule xsi:type="AND">
			<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category"
                attributeValue="httphttps://wwwrefeds.geant.netorg/uri/dataprotection-code-of-conduct/v1category/pseudonymous" />
        <AttributeRule attributeID="eduPersonTargetedID			<Rule xsi:type="NOT">
                <PermitValueRule 				<Rule xsi:type="AttributeInMetadata" onlyIfRequired="true"EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="https://refeds.org/category/anonymous" />
        			</AttributeRule>
        Rule>
		</PolicyRequirementRule>
		<AttributeRule attributeID="eduPersonPrincipalNamesamlPairwiseID">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        ANY"/>
		</AttributeRule>
		<AttributeRule attributeID="eduPersonScopedAffiliation">
			<PermitValueRule xsi:type="ANY"/>
		</AttributeRule>
		<!-- Deprecated, unlikely to be used in the future
        <AttributeRule <AttributeRule attributeID="eduPersonUniqueIdschacHomeOrganization">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" ANY"/>
        		</AttributeRule>
        -->
        <AttributeRule attributeID="eduPersonOrcid">
                <PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        <AttributeRule attributeID="norEduPersonNIN">
                <PermitValueRule xsi:type="AND">
                        		<AttributeRule attributeID="eduPersonAssurance">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- REFEDS Personalized Access Entity Category	-->
	<!-- Supports data minimalisation to prevent use together with anonymous and pseudonymous-->
	<AttributeFilterPolicy id="releaseToRefedsPersonalized">
		<PolicyRequirementRule xsi:type="AND">
			<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="https://refeds.org/category/personalized" />
			<Rule xsi:type="NOT">
				<Rule xsi:type="OR">
					<Rule xsi:type="AttributeInMetadataEntityAttributeExactMatch" onlyIfRequiredattributeName="truehttp://macedir.org/entity-category" attributeValue="https:/>
                        /refeds.org/category/anonymous" />
					<Rule xsi:type="RegistrationAuthorityEntityAttributeExactMatch" registrarsattributeName="http://www.swamid.se/macedir.org/entity-category" attributeValue="https://refeds.org/category/pseudonymous" />
                </PermitValueRule>
        </AttributeRule>
        
				</Rule>
			</Rule>
		</PolicyRequirementRule>
		<AttributeRule attributeID="personalIdentityNumbersamlSubjectID">
                			<PermitValueRule xsi:type="ANDANY" />
		</AttributeRule>
		<AttributeRule                        <Rule attributeID="displayName">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
                        <Rule ANY" />
		</AttributeRule>
		<AttributeRule attributeID="givenName">
			<PermitValueRule xsi:type="RegistrationAuthorityANY" registrars="http://www.swamid.se/" />
                </PermitValueRule>
        >
		</AttributeRule>
        		<AttributeRule attributeID="schacDateOfBirthsn">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true"ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="mail">
                			<PermitValueRule xsi:type="AttributeInMetadataANY" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="cneduPersonAssurance">
			<PermitValueRule                xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganization">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true"ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="displayNameeduPersonScopedAffiliation">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        <AttributeRule attributeID="givenName">
                <PermitValueRuleOR">
				<Rule xsi:type="Value" value="faculty" caseSensitive="false" />
				<Rule xsi:type="AttributeInMetadataValue" onlyIfRequiredvalue="truestudent" /caseSensitive="false"/>
				<Rule xsi:type="Value"       </AttributeRule>
        <AttributeRule attributeID="sn">
                <PermitValueRulevalue="staff" caseSensitive="false"/>
				<Rule xsi:type="AttributeInMetadataValue" onlyIfRequiredvalue="truealum" caseSensitive="false"/>
        </AttributeRule>
        <AttributeRule attributeID="eduPersonAssurance">
                <PermitValueRule 				<Rule xsi:type="Value" value="member" caseSensitive="false"/>
				<Rule xsi:type="AttributeInMetadataValue" onlyIfRequiredvalue="trueaffiliate" caseSensitive="false"/>
        </AttributeRule>
        <AttributeRule attributeID="eduPersonScopedAffiliation">
                <PermitValueRule xsi:type="AND">
                        <Rule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
                        <Rule 				<Rule xsi:type="Value" value="employee" caseSensitive="false"/>
				<Rule xsi:type="Value" value="library-walk-in" caseSensitive="false"/>
			</PermitValueRule>
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- Rule to honour Subject ID requirement tag in metadata. Used in combination with Geant/Refeds Code of Conduct v* -->
	<!-- Code of Conduct can be combined with other entity categories -->
	<!-- Supports data minimalisation to prevent subject-id and pairwise-id being released together -->
	<AttributeFilterPolicy id="subject-identifiers">
		<PolicyRequirementRule xsi:type="OR">
                                			<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="facultyhttp://macedir.org/entity-category" ignoreCaseattributeValue="truehttp://www.geant.net/uri/dataprotection-code-of-conduct/v1" />
                                			<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="student" ignoreCase="truehttp://macedir.org/entity-category" attributeValue="https://refeds.org/category/code-of-conduct/v2" />
		</PolicyRequirementRule>
                                <Rule xsi:type="Value" value="staff" ignoreCase="true" />
                                		<AttributeRule attributeID="samlPairwiseID">
			<PermitValueRule xsi:type="AND">
				<Rule xsi:type="NOT">
					<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="alumhttp://macedir.org/entity-category" ignoreCaseattributeValue="truehttps://refeds.org/category/personalized" />
                                				</Rule>
				<Rule xsi:type="Value" value="member" ignoreCase="true" />
                                <Rule xsi:type="Value" value="affiliate" ignoreCase="true" />
                                OR">
					<Rule xsi:type="EntityAttributeExactMatch" attributeName="urn:oasis:names:tc:SAML:profiles:subject-id:req" attributeNameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" attributeValue="pairwise-id" />
					<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="employeeurn:oasis:names:tc:SAML:profiles:subject-id:req" ignoreCaseattributeNameFormat="true" />
                                <Rule urn:oasis:names:tc:SAML:2.0:attrname-format:uri" attributeValue="any" />
				</Rule>
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="samlSubjectID">
			<PermitValueRule xsi:type="Value" value="library-walk-in" ignoreCase="true" />
                        </Rule>
                </PermitValueRule>
        </AttributeRule>
        <AttributeRule attributeID="eduPersonAffiliation">
                <PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        <AttributeRule attributeID="o">
                <PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        <AttributeRule attributeID="norEduOrgAcronym">
                <PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        <AttributeRule attributeID="c">
                AND">
				<Rule xsi:type="NOT">
					<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="https://refeds.org/category/pseudonymous" />
				</Rule>
				<Rule xsi:type="EntityAttributeExactMatch" attributeName="urn:oasis:names:tc:SAML:profiles:subject-id:req" attributeNameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" attributeValue="subject-id" />
			</PermitValueRule>
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- GEANT Data protection Code of Conduct or REFEDS Data Protection Code of Conduct Entity Category -->
	<AttributeFilterPolicy id="releaseToCodeOfConduct">
		<PolicyRequirementRule xsi:type="OR">
			<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="http://www.geant.net/uri/dataprotection-code-of-conduct/v1" />
			<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="https://refeds.org/category/code-of-conduct/v2" />
		</PolicyRequirementRule>
		<AttributeRule attributeID="eduPersonTargetedID">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="coeduPersonPrincipalName">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="schacHomeOrganizationeduPersonOrcid">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
        </AttributeRule>
        <AttributeRule attributeID="schacHomeOrganizationType">
                <PermitValueRule 		<AttributeRule attributeID="norEduPersonNIN">
			<PermitValueRule xsi:type="AND">
				<Rule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
				<Rule        </AttributeRule>
</AttributeFilterPolicy>

<!-- REFEDS Research and Schoolarship -->
<AttributeFilterPolicy id="releaseToRandS">
        <PolicyRequirementRule xsi:type="RegistrationAuthority" registrars="http://www.swamid.se/" />
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="personalIdentityNumber">
			<PermitValueRule xsi:type="AND">
				<Rule xsi:type="EntityAttributeExactMatchAttributeInMetadata"
                attributeName="http://macedir.org/entity-category"
                attributeValueonlyIfRequired="true" />
				<Rule xsi:type="RegistrationAuthority" registrars="http://refedswww.swamid.org/category/research-and-scholarshipse/" />
			</PermitValueRule>
<!-- Alternative configuration examples for ePTID. See the static variables section of the attribute resolver.
        		</AttributeRule>
		<AttributeRule attributeID="eduPersonTargetedIDschacDateOfBirth">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="NOTtrue" />
		</AttributeRule>
                        <Rule 		<AttributeRule attributeID="mail">
			<PermitValueRule xsi:type="ValueAttributeInMetadata" valueonlyIfRequired="true"https://refeds.org/assurance/ID/eppn-unique-no-reassign" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonAssurancecn" />
			<PermitValueRule xsi:type="AttributeInMetadata"               </PermitValueRule>
        </AttributeRule>
-->
<!--
        onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonTargetedIDdisplayName">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="ANYtrue" />
        		</AttributeRule>
-->
        		<AttributeRule attributeID="displayNamegivenName">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="ANYtrue" />
        		</AttributeRule>
        		<AttributeRule attributeID="givenNamesn">
                <PermitValueRule xsi:type="ANY			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="sneduPersonAssurance">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="ANYtrue" />
        </AttributeRule>
        		</AttributeRule>
		<AttributeRule attributeID="maileduPersonScopedAffiliation">
                			<PermitValueRule xsi:type="ANYAND" />
				<Rule        </AttributeRule>
		<!-- Deprecated, unlikely to be used in the future
        <AttributeRule attributeID="eduPersonUniqueId">
                <PermitValueRulexsi:type="AttributeInMetadata" onlyIfRequired="true" />
				<Rule xsi:type="OR">
					<Rule xsi:type="Value" value="faculty" caseSensitive="false" />
					<Rule xsi:type="ANYValue" />
        </AttributeRule>
        -->
        <AttributeRule attributeID="eduPersonAssurance">
                <PermitValueRulevalue="student" caseSensitive="false" />
					<Rule xsi:type="Value" value="staff" caseSensitive="false" />
					<Rule xsi:type="ANYValue" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonPrincipalName">
                <PermitValueRule value="alum" caseSensitive="false" />
					<Rule xsi:type="Value" value="member" caseSensitive="false" />
					<Rule xsi:type="ANYValue" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonScopedAffiliation">
                <PermitValueRulevalue="affiliate" caseSensitive="false" />
					<Rule xsi:type="Value" value="employee" caseSensitive="false" />
					<Rule xsi:type="ORValue">
                        <Rule value="library-walk-in" caseSensitive="false" />
				</Rule>
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="eduPersonAffiliation">
			<PermitValueRule xsi:type="ValueAttributeInMetadata" value="faculty" ignoreCaseonlyIfRequired="true" />
                        <Rule 		</AttributeRule>
		<AttributeRule attributeID="o">
			<PermitValueRule xsi:type="ValueAttributeInMetadata" valueonlyIfRequired="student" ignoreCase="true" />
                        <Rule true" />
		</AttributeRule>
		<AttributeRule attributeID="norEduOrgAcronym">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="c">
			<PermitValueRule xsi:type="ValueAttributeInMetadata" valueonlyIfRequired="staff" ignoreCase="true" />
                        <Rule true" />
		</AttributeRule>
		<AttributeRule attributeID="co">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganization">
			<PermitValueRule xsi:type="ValueAttributeInMetadata" valueonlyIfRequired="alum" ignoreCase="true" />
                        <Rule xsi:type="Value" value="member" ignoreCasetrue" />
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganizationType">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- REFEDS Research and Scholarship Entity Category -->
	<AttributeFilterPolicy                 id="releaseToRefedsResearchAndScholarship">
		<PolicyRequirementRule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="http://refeds.org/category/research-and-scholarship" />
		<AttributeRule attributeID="eduPersonTargetedID">
			<PermitValueRule xsi:type="NOT">
				<Rule xsi:type="Value" value="affiliate" ignoreCase="truehttps://refeds.org/assurance/ID/eppn-unique-no-reassign" attributeID="eduPersonAssurance" />
			</PermitValueRule>
		</AttributeRule>
                        <Rule		<AttributeRule attributeID="displayName">
			<PermitValueRule xsi:type="Value" value="employee" ignoreCase="true" />
                        <Rule ANY" />
		</AttributeRule>
		<AttributeRule attributeID="givenName">
			<PermitValueRule xsi:type="Value" value="library-walk-in" ignoreCase="trueANY" />
		</AttributeRule>
		<AttributeRule attributeID="sn">
			<PermitValueRule xsi:type="ANY" />
                		</PermitValueRule>AttributeRule>
		<AttributeRule attributeID="mail">
			<PermitValueRule       </AttributeRule>
</AttributeFilterPolicy>

<!-- DEPRECATED entity-category-swamid-research-and-education WILL BE REMOVED 2020-10-31 -->
<AttributeFilterPolicy id="entity-category-research-and-education">
        <PolicyRequirementRulexsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonAssurance">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonPrincipalName">
			<PermitValueRule xsi:type="ANDANY" />
		</AttributeRule>
                <Rule 		<AttributeRule attributeID="eduPersonScopedAffiliation">
			<PermitValueRule xsi:type="OR">
				<Rule xsi:type="Value" value="faculty"                      caseSensitive="false" />
				<Rule xsi:type="EntityAttributeExactMatchValue"
                                attributeName="http://macedir.org/entity-category"
                                attributeValue="http://www.swamid.se/category/eu-adequate-protection" />
                        <Rule xsi:type="EntityAttributeExactMatch"
                                value="student" caseSensitive="false" />
				<Rule xsi:type="Value" value="staff" caseSensitive="false" />
				<Rule xsi:type="Value" value="alum" caseSensitive="false" />
				<Rule xsi:type="Value" value="member" caseSensitive="false" />
				<Rule xsi:type="Value" value="affiliate" caseSensitive="false" />
				<Rule xsi:type="Value" value="employee" caseSensitive="false" />
				<Rule xsi:type="Value" value="library-walk-in" caseSensitive="false" />
			</PermitValueRule>
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- ESI European Student Identifier -->
	<AttributeFilterPolicy id="entity-category-european-student-identifier">
		<PolicyRequirementRule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category"
                                attributeValue="http attributeValue="https://wwwmyacademicid.swamid.se/category/nren-serviceorg/entity-categories/esi" />
		<AttributeRule attributeID="schacPersonalUniqueCode">
			<PermitValueRule                       <Rulexsi:type="ValueRegex" regex="^urn:schac:personalUniqueCode:int:esi:.*" />
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- DEPRECATED entity-category-swamid-research-and-education -->
	<AttributeFilterPolicy id="entity-category-research-and-education">
		<PolicyRequirementRule xsi:type="EntityAttributeExactMatchAND">
			<Rule                                xsi:type="OR">
				<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category"
                                 attributeValue="http://www.swamid.se/category/eu-adequate-protection" />
				<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="http://www.swamid.se/category/heinren-service" />
				<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category"              </Rule>
                attributeValue="http://www.swamid.se/category/hei-service" />
			</Rule>
			<Rule xsi:type="EntityAttributeExactMatch"
                        attributeName="http://macedir.org/entity-category"
                        attributeValue attributeValue="http://www.swamid.se/category/research-and-education" />
        		</PolicyRequirementRule>
        		<AttributeRule attributeID="givenName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule attributeID="		<AttributeRule attributeID="sn">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="displayName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule 		<AttributeRule attributeID="cn">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="eduPersonPrincipalName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule attributeID		<AttributeRule attributeID="eduPersonAssurance">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="mail">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule 		<AttributeRule attributeID="eduPersonScopedAffiliation">
                			<PermitValueRule xsi:type="OR">
                        				<Rule xsi:type="Value" value="faculty" ignoreCasecaseSensitive="truefalse" />
				<Rule xsi:type="Value"                       value="student" caseSensitive="false" />
				<Rule xsi:type="Value" value="studentstaff" ignoreCasecaseSensitive="truefalse" />
                        				<Rule xsi:type="Value" value="staffalum" ignoreCasecaseSensitive="truefalse" />
				<Rule xsi:type="Value" value="member"                      caseSensitive="false" />
				<Rule xsi:type="Value" value="alumaffiliate" ignoreCasecaseSensitive="truefalse" />
                        				<Rule xsi:type="Value" value="memberemployee" ignoreCasecaseSensitive="truefalse" />
                        <Rule 				<Rule xsi:type="Value" value="affiliatelibrary-walk-in" ignoreCasecaseSensitive="truefalse" />
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="o">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule                     <Rule attributeID="norEduOrgAcronym">
			<PermitValueRule xsi:type="ValueANY" value/>
		</AttributeRule>
		<AttributeRule attributeID="employee" ignoreCase="trueco">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
                        <Rule 		<AttributeRule attributeID="c">
			<PermitValueRule xsi:type="Value" value="library-walk-in" ignoreCase="trueANY" />
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganization">
			<PermitValueRule xsi:type="ANY" />
                		</PermitValueRule>
        </AttributeRule>
        <AttributeRule attributeID="o">
                <PermitValueRuleAttributeRule>
	</AttributeFilterPolicy>

	<!-- DEPRECATED entity-category-sfs-1993-1153 -->
	<AttributeFilterPolicy id="entity-category-sfs-1993-1153">
		<PolicyRequirementRule xsi:type="ANYEntityAttributeExactMatch" />
        </AttributeRule>
        attributeName="http://macedir.org/entity-category" attributeValue="http://www.swamid.se/category/sfs-1993-1153" />
		<AttributeRule attributeID="norEduOrgAcronymnorEduPersonNIN">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="ceduPersonAssurance">
                			<PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="co">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="schacHomeOrganization">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
</AttributeFilterPolicy>

<!-- DEPRECATED entity-category-sfs-1993-1153 WILL BE REMOVED 2020-10-31-->
<AttributeFilterPolicy id="entity-category-sfs-1993-1153">
        <PolicyRequirementRule xsi:type="EntityAttributeExactMatch"
                        attributeName="http://macedir.org/entity-category"
                        attributeValue="http://www.swamid.se/category/sfs-1993-1153" />

        <AttributeRule attributeID="norEduPersonNIN">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonAssurance">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
</AttributeFilterPolicy>

<!-- Examples of entityId based release to Service Providers -->

<!-- Release to testshib.org -->
<!--
<AttributeFilterPolicy id="testShib">
        <PolicyRequirementRule xsi:type="Requester" value="https://sp.testshib.org/shibboleth-sp" />

        <AttributeRule attributeID="givenName">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>

        <AttributeRule attributeID="commonName">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>

        <AttributeRule attributeID="surname">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>

        <AttributeRule attributeID="principal">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>

</AttributeFilterPolicy>
-->




<!-- NyA-webben UHR -->
<!--
<AttributeFilterPolicy id="releaseNyAwebbenEntitlement">
        <PolicyRequirementRule xsi:type="OR">
                <Rule xsi:type="Requester" value="https://expert.antagning.se/ecs-sp" />
                <Rule xsi:type="Requester" value="https://expert.testa.antagning.se/ecs-sp" />
                <Rule xsi:type="Requester" value="https://expert.testb.antagning.se/ecs-sp" />
        </PolicyRequirementRule>

        <AttributeRule attributeID="NyAwebbenEntitlement">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
</AttributeFilterPolicy>
-->




<!--  TCS - Digicert until 2020-04-30 -->
<!--  New TCS Personal -->
<!--
<AttributeFilterPolicy id="releaseTcsPersonalEntitlement">
        <PolicyRequirementRule xsi:type="Requester" value="https://www.digicert.com/sso" />

        <AttributeRule attributeID="displayName">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonPrincipalName">
                <PermitValueRule xsi:type="ANY"/>
        </AttributeRule>
        <AttributeRule attributeID="tcsPersonalEntitlement">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="mail">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="schacHomeOrganization">
                <PermitValueRule xsi:type="ANY"/>
        </AttributeRule>
</AttributeFilterPolicy>
-->



<!--  TCS - Sectigo 2020-05-01 and forward -->
<!--  Please see https://wiki.sunet.se/display/SWAMID/SAML-konfiguration+Sunet+TCS -->
<!--  for information on how to create a resolver for tcsPersonalEntitlement.      -->
<!--
>
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- Sectigo -->
	<AttributeFilterPolicy id="releaseSectigoAttributeBundle">
        		<PolicyRequirementRule xsi:type="Requester" value="https://cert-manager.com/shibboleth" />

        		<AttributeRule attributeID="eduPersonPrincipalName">
                			<PermitValueRule xsi:type="ANY"/>
        		</AttributeRule>
        		<AttributeRule attributeID="displayName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="givenName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="mail">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="sn">
                			<PermitValueRule xsi:type="ANY"/>
        		</AttributeRule>
        		<AttributeRule attributeID="schacHomeOrganization">
                			<PermitValueRule xsi:type="ANY"/>
        		</AttributeRule>
        		<AttributeRule attributeID="tcsPersonalEntitlement">
                	<PermitValueRule xsi:type="ANY"/>
        	</AttributeRule>
<   </AttributeFilterPolicy>
-->


 <!-- PLACEHOLDER DO NOT REMOVE -->
</AttributeFilterPolicyGroup>

...