Skip to content

Commit

Permalink
[nojira]
Browse files Browse the repository at this point in the history
temp for for whitelist filter
  • Loading branch information
jj committed Oct 16, 2018
1 parent fca2c7b commit 18ee767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class JPAMetadataResolverServiceImpl implements MetadataResolverService {
) {
filter.retainedRoles.each {
// TODO: fix
markupBuilderDelegate.RetainedRole(it.startsWith('md:') ?: "md:${it}")
markupBuilderDelegate.RetainedRole(it.startsWith('md:') ? it : "md:${it}")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions backend/src/test/resources/conf/533.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xsi:type="ChainingMetadataProvider"
xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd urn:mace:shibboleth:2.0:resource http://shibboleth.net/schema/idp/shibboleth-resource.xsd urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd urn:oasis:names:tc:SAML:2.0:assertion http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd">
<MetadataFilter xsi:type="EntityRoleWhiteList" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata">
<RetainedRole>role1</RetainedRole>
<RetainedRole>role2</RetainedRole>
<RetainedRole>md:role1</RetainedRole>
<RetainedRole>md:role2</RetainedRole>
</MetadataFilter>
</MetadataProvider>

0 comments on commit 18ee767

Please sign in to comment.