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="eduPersonOrcideduPersonScopedAffiliation">
                <PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        			<PermitValueRule xsi:type="ANY"/>
		</AttributeRule>
		<AttributeRule attributeID="norEduPersonNINschacHomeOrganization">
                			<PermitValueRule xsi:type="ANDANY"/>
		</AttributeRule>
		<AttributeRule                        <Rule attributeID="eduPersonAssurance">
			<PermitValueRule xsi:type="AttributeInMetadataANY" onlyIfRequired="true" />
		</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="RegistrationAuthorityEntityAttributeExactMatch" registrarsattributeName="http://www.swamid.se/macedir.org/entity-category" attributeValue="https://refeds.org/category/personalized" />
                </PermitValueRule>
        </AttributeRule>
        <AttributeRule attributeID="personalIdentityNumber">
                <PermitValueRule 			<Rule xsi:type="NOT">
				<Rule xsi:type="OR">
					<Rule xsi:type="ANDEntityAttributeExactMatch">
                        <Rule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
                         attributeName="http://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="schacDateOfBirthsamlSubjectID">
                <PermitValueRule 			<PermitValueRule xsi:type="AttributeInMetadataANY" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="maildisplayName">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true"ANY" />
        </AttributeRule>
        		</AttributeRule>
		<AttributeRule attributeID="cngivenName">
                			<PermitValueRule xsi:type="AttributeInMetadataANY" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="displayNamesn">
			<PermitValueRule                xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="mail">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true"ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="givenNameeduPersonAssurance">
			<PermitValueRule                xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganization">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="trueANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="sneduPersonScopedAffiliation">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonAssurance">
                <PermitValueRule OR">
				<Rule xsi:type="Value" value="faculty" caseSensitive="false" />
				<Rule xsi:type="AttributeInMetadataValue" onlyIfRequiredvalue="truestudent" caseSensitive="false"/>
				<Rule xsi:type="Value"       </AttributeRule>
        <AttributeRule attributeID="eduPersonScopedAffiliation">
                <PermitValueRule xsi:type="AND">
                        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="AttributeInMetadataValue" onlyIfRequiredvalue="trueemployee" 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 <Rule xsi:type="OR">
                                <Ruleof 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="Value" value="faculty" ignoreCase="true" />
                                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="ValueEntityAttributeExactMatch" valueattributeName="studenthttp://macedir.org/entity-category" ignoreCaseattributeValue="truehttps://refeds.org/category/code-of-conduct/v2" />
		</PolicyRequirementRule>
		<AttributeRule attributeID="samlPairwiseID">
			<PermitValueRule                               xsi:type="AND">
				<Rule xsi:type="NOT">
					<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="staffhttp://macedir.org/entity-category" ignoreCaseattributeValue="truehttps://refeds.org/category/personalized" />
				</Rule>
                                				<Rule xsi:type="OR">
					<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="alumurn:oasis:names:tc:SAML:profiles:subject-id:req" ignoreCase="true" />
                                attributeNameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" attributeValue="pairwise-id" />
					<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="memberurn:oasis:names:tc:SAML:profiles:subject-id:req" ignoreCase="true" />
                                <Rule xsi:type="Value" value="affiliate" ignoreCase="true" />
                                attributeNameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" attributeValue="any" />
				</Rule>
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="samlSubjectID">
			<PermitValueRule xsi:type="AND">
				<Rule xsi:type="Value" value="employee" ignoreCase="true" />
                                NOT">
					<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="https://refeds.org/category/pseudonymous" />
				</Rule>
				<Rule xsi:type="ValueEntityAttributeExactMatch" valueattributeName="library-walk-in" ignoreCase="true" />
                        </Rule>
                </PermitValueRule>
        </AttributeRule>
        <AttributeRule attributeID="eduPersonAffiliation">
                <PermitValueRuleurn: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="AttributeInMetadataEntityAttributeExactMatch" onlyIfRequiredattributeName="true" />
        </AttributeRule>
        http://macedir.org/entity-category" attributeValue="https://refeds.org/category/code-of-conduct/v2" />
		</PolicyRequirementRule>
		<AttributeRule attributeID="oeduPersonTargetedID">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        		</AttributeRule>
        <AttributeRule attributeID="norEduOrgAcronym">
                		<AttributeRule attributeID="eduPersonPrincipalName">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        		</AttributeRule>
        		<AttributeRule attributeID="ceduPersonOrcid">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
        </AttributeRule>
        <AttributeRule attributeID="co">
                <PermitValueRule 		<AttributeRule attributeID="norEduPersonNIN">
			<PermitValueRule xsi:type="AND">
				<Rule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
				<Rule        </AttributeRule>
        xsi:type="RegistrationAuthority" registrars="http://www.swamid.se/" />
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganizationpersonalIdentityNumber">
                <PermitValueRule 			<PermitValueRule xsi:type="AND">
				<Rule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
				<Rule xsi:type="RegistrationAuthority"       registrars="http://www.swamid.se/" />
			</PermitValueRule>
		</AttributeRule>
        		<AttributeRule attributeID="schacHomeOrganizationTypeschacDateOfBirth">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
        		</AttributeRule>
</AttributeFilterPolicy>

<!-- REFEDS Research and Schoolarship -->
<AttributeFilterPolicy id="releaseToRandS">
        <PolicyRequirementRule		<AttributeRule attributeID="mail">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="cn">
			<PermitValueRule xsi:type="EntityAttributeExactMatchAttributeInMetadata"
 onlyIfRequired="true"               attributeName="http://macedir.org/entity-category"
                attributeValue="http://refeds.org/category/research-and-scholarship/>
		</AttributeRule>
		<AttributeRule attributeID="displayName">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
<!-- Alternative configuration examples for ePTID. See the static variables section of the attribute resolver.
        		</AttributeRule>
		<AttributeRule attributeID="eduPersonTargetedIDgivenName">
                			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="NOTtrue" />
		</AttributeRule>
                        <Rule 		<AttributeRule attributeID="sn">
			<PermitValueRule xsi:type="ValueAttributeInMetadata" valueonlyIfRequired="https://refeds.org/assurance/ID/eppn-unique-no-reassign"true" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonAssurance" />
			<PermitValueRule xsi:type="AttributeInMetadata"               </PermitValueRule>
        </AttributeRule>
-->
<!--
        onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonTargetedIDeduPersonScopedAffiliation">
                			<PermitValueRule xsi:type="ANYAND" />
				<Rule xsi:type="AttributeInMetadata"       </AttributeRule>
-->
        <AttributeRule attributeID="displayName">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="givenName">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="sn">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="mail">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonAssurance">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonPrincipalName">
                <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="eduPersonScopedAffiliation">
                <PermitValueRule xsi:type="OR">
                        <Rule xsi:type="Value" value="faculty" ignoreCase="true" />
                        <Rule xsi:type="Value" value="student" ignoreCase="true" />
                        <Rule xsi:type="Value" value="staff" ignoreCase="true" />
                        <Rule xsi:type="Value" value="alum" ignoreCase="true" />
                        onlyIfRequired="true" />
				<Rule xsi:type="OR">
					<Rule xsi:type="Value" value="faculty" caseSensitive="false" />
					<Rule xsi:type="Value" 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" />
				</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">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="co">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</AttributeRule>
		<AttributeRule attributeID="schacHomeOrganization">
			<PermitValueRule xsi:type="AttributeInMetadata" onlyIfRequired="true" />
		</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="memberhttps://refeds.org/assurance/ID/eppn-unique-no-reassign" ignoreCaseattributeID="trueeduPersonAssurance" />
			</PermitValueRule>
		</AttributeRule>
		<AttributeRule                        <Rule attributeID="displayName">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="givenName">
			<PermitValueRule xsi:type="Value" value="affiliate" ignoreCase="trueANY" />
		</AttributeRule>
		<AttributeRule attributeID="sn">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule                        <Rule attributeID="mail">
			<PermitValueRule xsi:type="Value" value="employee" ignoreCase="trueANY" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonAssurance">
			<PermitValueRule xsi:type="ANY" />
                        		</AttributeRule>
		<AttributeRule attributeID="eduPersonPrincipalName">
			<PermitValueRule xsi:type="ANY" />
		</AttributeRule>
		<AttributeRule attributeID="eduPersonScopedAffiliation">
			<PermitValueRule xsi:type="OR">
				<Rule xsi:type="Value" value="library-walk-infaculty" ignoreCasecaseSensitive="truefalse" />
				<Rule xsi:type="Value" value="student" caseSensitive="false" />
				<Rule xsi:type="Value"           </PermitValueRule>
        </AttributeRule>
</AttributeFilterPolicy>

<!-- ESI European Student Identifier -->
<AttributeFilterPolicy id="entity-category-european-student-identifier">
        <PolicyRequirementRulevalue="staff" caseSensitive="false" />
				<Rule xsi:type="Value" value="alum" caseSensitive="false" />
				<Rule xsi:type="Value" value="member" caseSensitive="false" />
				<Rule xsi:type="EntityAttributeExactMatchValue"
                attributeName="http://macedir.org/entity-category"
                attributeValue="https://myacademicid.org/entity-categories/esi value="affiliate" caseSensitive="false" />
        <AttributeRule attributeID="schacPersonalUniqueCode">
                <PermitValueRule xsi:type="ValueRegex" regex="^urn:schac:PersonalUniqueCode:int:esi:.*" />
        </AttributeRule>
				<Rule xsi:type="Value" value="employee" caseSensitive="false" />
				<Rule xsi:type="Value" value="library-walk-in" caseSensitive="false" />
			</PermitValueRule>
		</AttributeRule>
	</AttributeFilterPolicy>

	<!-- DEPRECATED entity-category-swamid-research-and-education WILL BE REMOVED 2020-10-31 -->
ESI European Student Identifier -->
	<AttributeFilterPolicy id="entity-category-researcheuropean-andstudent-educationidentifier">
        		<PolicyRequirementRule xsi:type="ANDEntityAttributeExactMatch">
                <Rule xsi:type="OR">
                        <Rule xsi:type="EntityAttributeExactMatch"
                                attributeName="http://macedir attributeName="http://macedir.org/entity-category" attributeValue="https://myacademicid.org/entity-category"
                                attributeValue="http://www.swamid.se/category/eu-adequate-protection" />
                        categories/esi" />
		<AttributeRule attributeID="schacPersonalUniqueCode">
			<PermitValueRule xsi: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="AND">
			<Rule xsi:type="EntityAttributeExactMatchOR">
                                				<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category"
                                attributeValue="http://www.swamid.se/category/nreneu-adequate-serviceprotection" />
                        				<Rule xsi:type="EntityAttributeExactMatch"
                                attributeName="http://macedir.org/entity-category"
                                 attributeValue="http://www.swamid.se/category/nren-service" />
				<Rule xsi:type="EntityAttributeExactMatch" attributeName="http://macedir.org/entity-category" attributeValue="http://www.swamid.se/category/hei-service" />
                			</Rule>
                <Rule xsi:type			<Rule xsi:type="EntityAttributeExactMatch"
                        attributeName="http://macedir.org/entity-category"
                        attributeValue="http://www.swamid.se/category/research-and-education" />
        		</PolicyRequirementRule>
        <AttributeRule attributeID=		<AttributeRule attributeID="givenName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="sn">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule 		<AttributeRule attributeID="displayName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="cn">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule attributeID		<AttributeRule attributeID="eduPersonPrincipalName">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="eduPersonAssurance">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        <AttributeRule 		<AttributeRule attributeID="mail">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="eduPersonScopedAffiliation">
                			<PermitValueRule xsi:type="OR">
				<Rule                        xsi:type="Value" value="faculty" caseSensitive="false" />
				<Rule xsi:type="Value" value="facultystudent" ignoreCasecaseSensitive="truefalse" />
                        				<Rule xsi:type="Value" value="studentstaff" ignoreCasecaseSensitive="truefalse" />
                        <Rule xsi				<Rule xsi:type="Value" value="staffalum" ignoreCasecaseSensitive="truefalse" />
                        				<Rule xsi:type="Value" value="alummember" ignoreCasecaseSensitive="truefalse" />
				<Rule                        xsi:type="Value" value="affiliate" caseSensitive="false" />
				<Rule xsi:type="Value" value="memberemployee" ignoreCasecaseSensitive="truefalse" />
                        				<Rule xsi:type="Value" value="affiliatelibrary-walk-in" ignoreCasecaseSensitive="truefalse" />
                        <Rule 			</PermitValueRule>
		</AttributeRule>
		<AttributeRule attributeID="o">
			<PermitValueRule xsi:type="Value" value="employee" ignoreCase="trueANY" />
		</AttributeRule>
		<AttributeRule attributeID="norEduOrgAcronym">
			<PermitValueRule xsi:type="ANY" />
                        <Rule 		</AttributeRule>
		<AttributeRule attributeID="co">
			<PermitValueRule xsi:type="Value" value="library-walk-in" ignoreCase="trueANY" />
		</AttributeRule>
		<AttributeRule attributeID="c">
			<PermitValueRule xsi:type="ANY" />
                </PermitValueRule>
        </AttributeRule>
        		</AttributeRule>
		<AttributeRule attributeID="oschacHomeOrganization">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
	</AttributeFilterPolicy>

	<!--        <AttributeRule attributeID="norEduOrgAcronym">
                <PermitValueRule 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="cnorEduPersonNIN">
                			<PermitValueRule xsi:type="ANY" />
        		</AttributeRule>
        		<AttributeRule attributeID="coeduPersonAssurance">
                <PermitValueRule xsi:			<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>

...