-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of bitbucket.org:unicon/shib-idp-ui into bugfix…
…/SHIBUI-1002
- Loading branch information
Showing
26 changed files
with
285 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...c/main/java/edu/internet2/tier/shibboleth/admin/ui/configuration/ShibUIConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.configuration; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import java.util.List; | ||
|
||
@Configuration | ||
@ConfigurationProperties(prefix = "shibui") | ||
@Getter | ||
@Setter | ||
public class ShibUIConfiguration { | ||
/** | ||
* A list of namespaces that should be excluded from incoming metadata. This is used to prevent third party metadata | ||
* sources from using attributes that they might not have the rights to use. | ||
*/ | ||
private List<String> protectedAttributeNamespaces; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<MetadataProvider xmlns="urn:mace:shibboleth:2.0:metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
id="ShibbolethMetadata" | ||
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" | ||
xsi:type="ChainingMetadataProvider"> | ||
<MetadataProvider backgroundInitializationFromCacheDelay="PT2S" cleanupTaskInterval="PT30M" | ||
connectionRequestTimeout="PT5S" connectionTimeout="PT5S" id="DynamicHttpMetadataResolver" | ||
maxCacheDuration="PT8H" maxConnectionsPerRoute="100" maxConnectionsTotal="100" | ||
maxIdleEntityData="PT8H" minCacheDuration="PT10M" refreshDelayFactor="0.75" | ||
removeIdleEntityData="true" socketTimeout="PT5S" xsi:type="DynamicHttpMetadataProvider"> | ||
<MetadataQueryProtocol>http://mdq-beta.incommon.org/global</MetadataQueryProtocol> | ||
<MetadataFilter xsi:type="EntityAttributes"> | ||
<AttributeFilterScript> | ||
<Script> | ||
<![CDATA[ | ||
(function (attribute) { | ||
"use strict"; | ||
var namespaces = ["http://shibboleth.net/ns/profiles", "http://scaldingspoon.com/iam"]; | ||
// check the parameter | ||
if (attribute === null) { return true; } | ||
for (var i in namespaces) { | ||
if (attribute.getName().startsWith(namespaces[i])) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}(input)); | ||
]]> | ||
</Script> | ||
</AttributeFilterScript> | ||
</MetadataFilter> | ||
</MetadataProvider> | ||
</MetadataProvider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<MetadataProvider xmlns="urn:mace:shibboleth:2.0:metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
id="ShibbolethMetadata" | ||
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" | ||
xsi:type="ChainingMetadataProvider"> | ||
<MetadataProvider backgroundInitializationFromCacheDelay="PT2S" cleanupTaskInterval="PT30M" | ||
connectionRequestTimeout="PT5S" connectionTimeout="PT5S" id="DynamicHttpMetadataResolver" | ||
maxCacheDuration="PT8H" maxConnectionsPerRoute="100" maxConnectionsTotal="100" | ||
maxIdleEntityData="PT8H" minCacheDuration="PT10M" refreshDelayFactor="0.75" | ||
removeIdleEntityData="true" socketTimeout="PT5S" xsi:type="DynamicHttpMetadataProvider"> | ||
<MetadataQueryProtocol>http://mdq-beta.incommon.org/global</MetadataQueryProtocol> | ||
<MetadataFilter xsi:type="EntityAttributes"> | ||
<AttributeFilterScript> | ||
<Script> | ||
<![CDATA[ | ||
(function (attribute) { | ||
"use strict"; | ||
var namespaces = ["http://shibboleth.net/ns/profiles"]; | ||
// check the parameter | ||
if (attribute === null) { return true; } | ||
for (var i in namespaces) { | ||
if (attribute.getName().startsWith(namespaces[i])) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}(input)); | ||
]]> | ||
</Script> | ||
</AttributeFilterScript> | ||
</MetadataFilter> | ||
</MetadataProvider> | ||
</MetadataProvider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" | ||
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" | ||
entityID="http://test.scaldingspoon.org/test1"> | ||
<md:Extensions> | ||
<mdattr:EntityAttributes> | ||
<saml:Attribute Name="http://scaldingspoon.org/realm" | ||
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> | ||
<saml:AttributeValue>internal</saml:AttributeValue> | ||
</saml:Attribute> | ||
</mdattr:EntityAttributes> | ||
</md:Extensions> | ||
<md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> | ||
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat> | ||
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" | ||
Location="https://test.scaldingspoon.org/test1/acs" | ||
index="1"/> | ||
</md:SPSSODescriptor> | ||
</md:EntityDescriptor> |
Oops, something went wrong.