-
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.
Unit test to check that the service builds the proper XML for the "external provider"
- Loading branch information
Showing
5 changed files
with
131 additions
and
21 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
26 changes: 25 additions & 1 deletion
26
...ava/edu/internet2/tier/shibboleth/admin/ui/domain/resolvers/ExternalMetadataResolver.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 |
---|---|---|
@@ -1,4 +1,28 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.domain.resolvers; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
import org.hibernate.envers.Audited; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
|
||
@Entity | ||
@EqualsAndHashCode(callSuper = true) | ||
@Getter | ||
@Setter | ||
@ToString | ||
@Audited | ||
public class ExternalMetadataResolver extends MetadataResolver { | ||
} | ||
@Column | ||
private String description; | ||
|
||
@Column(unique = true) | ||
private String externalResolverId; | ||
|
||
public ExternalMetadataResolver() { | ||
type = "ExternalMetadataResolver"; | ||
} | ||
} |
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,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<MetadataFilter xsi:type="ByReference" | ||
xmlns="urn:mace:shibboleth:2.0:metadata" | ||
xmlns:security="urn:mace:shibboleth:2.0:security" | ||
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" | ||
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd urn:oasis:names:tc:SAML:2.0:assertion http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd"> | ||
|
||
<MetadataFilters providerRef="InCommonMD"> | ||
<MetadataFilter xsi:type="EntityAttributes"> | ||
<saml2:Attribute xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" | ||
Name="http://shibboleth.net/ns/attributes/releaseAllValues" | ||
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> | ||
<saml2:AttributeValue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">eduPersonPrincipalName</saml2:AttributeValue> | ||
</saml2:Attribute> | ||
<Entity>https://sp.example.org/shibboleth</Entity> | ||
</MetadataFilter> | ||
</MetadataFilters> | ||
|
||
</MetadataFilter> |