-
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.
Merged in SHIBUI-808 (pull request #207)
SHIBUI-808 Approved-by: Bill Smith <wsmith@unicon.net> Approved-by: Dmitriy Kopylenko <dkopylenko@unicon.net>
- Loading branch information
Showing
35 changed files
with
978 additions
and
31 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
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 @@ | ||
loader.path=libs/ |
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
50 changes: 50 additions & 0 deletions
50
backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/RequestInitiator.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,50 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.domain; | ||
|
||
import org.opensaml.core.xml.util.AttributeMap; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class RequestInitiator extends AbstractElementExtensibleXMLObject implements org.opensaml.saml.ext.saml2mdreqinit.RequestInitiator { | ||
private String binding; | ||
@Override | ||
public String getBinding() { | ||
return this.binding; | ||
} | ||
|
||
@Override | ||
public void setBinding(String binding) { | ||
this.binding = binding; | ||
} | ||
|
||
private String location; | ||
|
||
@Override | ||
public String getLocation() { | ||
return location; | ||
} | ||
|
||
@Override | ||
public void setLocation(String location) { | ||
this.location = location; | ||
} | ||
|
||
private String responseLocation; | ||
|
||
@Override | ||
public String getResponseLocation() { | ||
return this.responseLocation; | ||
} | ||
|
||
@Override | ||
public void setResponseLocation(String location) { | ||
this.responseLocation = location; | ||
} | ||
|
||
private AttributeMap attributeMap = new AttributeMap(this); | ||
|
||
@Nonnull | ||
@Override | ||
public AttributeMap getUnknownAttributes() { | ||
return this.attributeMap; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../src/main/java/edu/internet2/tier/shibboleth/admin/ui/domain/RequestInitiatorBuilder.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,43 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.domain; | ||
|
||
import org.opensaml.saml.common.AbstractSAMLObjectBuilder; | ||
import org.opensaml.saml.common.xml.SAMLConstants; | ||
import org.w3c.dom.Element; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
import javax.xml.namespace.QName; | ||
|
||
public class RequestInitiatorBuilder extends AbstractSAMLObjectBuilder<RequestInitiator> { | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
public RequestInitiatorBuilder() { | ||
|
||
} | ||
|
||
/** {@inheritDoc} */ | ||
public RequestInitiator buildObject() { | ||
return buildObject(SAMLConstants.SAML20MDRI_NS, org.opensaml.saml.ext.saml2mdreqinit.RequestInitiator.DEFAULT_ELEMENT_LOCAL_NAME, | ||
SAMLConstants.SAML20MDRI_PREFIX); | ||
} | ||
|
||
/** {@inheritDoc} */ | ||
public RequestInitiator buildObject(final String namespaceURI, final String localName, | ||
final String namespacePrefix) { | ||
RequestInitiator o = new RequestInitiator(); | ||
o.setNamespaceURI(namespaceURI); | ||
o.setElementLocalName(localName); | ||
o.setNamespacePrefix(namespacePrefix); | ||
return o; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public RequestInitiator buildObject(@Nullable String namespaceURI, @Nonnull String localName, @Nullable String namespacePrefix, @Nullable QName schemaType) { | ||
RequestInitiator requestInitiator = buildObject(namespaceURI, localName, namespacePrefix); | ||
requestInitiator.setSchemaType(schemaType); | ||
return requestInitiator; | ||
} | ||
} |
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
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,2 +1,4 @@ | ||
org.springframework.boot.env.EnvironmentPostProcessor=\ | ||
edu.internet2.tier.shibboleth.admin.ui.configuration.postprocessors.IdpHomeValueSettingEnvironmentPostProcessor | ||
edu.internet2.tier.shibboleth.admin.ui.configuration.postprocessors.IdpHomeValueSettingEnvironmentPostProcessor | ||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ | ||
edu.internet2.tier.shibboleth.admin.ui.configuration.auto.WebSecurityConfig |
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
15 changes: 15 additions & 0 deletions
15
backend/src/main/resources/jpa-saml2-metadata-reqinit-config.xml
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<XMLTooling xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init" xmlns="http://www.opensaml.org/xmltooling-config" xsi:schemaLocation="http://www.opensaml.org/xmltooling-config ../../src/schema/xmltooling-config.xsd"> | ||
|
||
<!-- SAML 2.0 Metadata SSO Service Provider Request Initiation Extension. --> | ||
<ObjectProviders> | ||
|
||
<!-- RequestInitiator provider --> | ||
<ObjectProvider qualifiedName="init:RequestInitiator"> | ||
<BuilderClass className="edu.internet2.tier.shibboleth.admin.ui.domain.RequestInitiatorBuilder"/> | ||
<MarshallingClass className="org.opensaml.saml.ext.saml2mdreqinit.impl.RequestInitiatorMarshaller"/> | ||
<UnmarshallingClass className="org.opensaml.saml.ext.saml2mdreqinit.impl.RequestInitiatorUnmarshaller"/> | ||
</ObjectProvider> | ||
|
||
</ObjectProviders> | ||
</XMLTooling> |
Oops, something went wrong.