Commit f00c24ff authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

712: Implement error handling

Task-Url: https://minfba.de.dariah.eu/mantisbt/view.php?id=712
parent a9051a40
......@@ -39,6 +39,7 @@ import org.opensaml.saml2.core.StatusMessage;
import org.opensaml.saml2.core.Subject;
import org.opensaml.saml2.core.SubjectConfirmation;
import org.opensaml.saml2.core.SubjectConfirmationData;
import org.opensaml.saml2.core.impl.StatusCodeImpl;
import org.opensaml.saml2.metadata.AssertionConsumerService;
import org.opensaml.saml2.metadata.AttributeAuthorityDescriptor;
import org.opensaml.saml2.metadata.AttributeService;
......@@ -175,6 +176,7 @@ public class SAMLAttributeQueryImpl extends WebSSOProfileConsumerImpl implements
// Verify status
if (!StatusCode.SUCCESS_URI.equals(response.getStatus().getStatusCode().getValue())) {
Object[] logMessage = new String[2];
logMessage[0] = response.getStatus().getStatusCode().getValue();
StatusMessage message1 = response.getStatus().getStatusMessage();
if (message1 != null) {
......
......@@ -40,6 +40,9 @@
<level value="debug" />
</logger> -->
<!-- SAML messages -->
<logger name="PROTOCOL_MESSAGE">
<level value="debug" />
</logger>
</configuration>
\ No newline at end of file
......@@ -30,6 +30,8 @@
<security:request-cache ref="requestCache"/>
<security:custom-filter before="FIRST" ref="metadataGeneratorFilter"/>
<!-- Disable only for /saml/SSO** ?? -->
<security:csrf disabled="true" />
</security:http>
......
......@@ -202,13 +202,13 @@
<bean id="attributeQueryOptions" class="eu.dariah.de.dariahsp.saml.attributequery.SAMLAttributeQueryOptions">
<property name="performAggregation" value="true" />
<property name="attributeAuthorityIDP" value="https://idp.de.dariah.eu/idp/shibboleth" />
<property name="useOriginalSubjectNameID" value="true" />
<property name="attributeAuthorityIDP" value="https://ldap-dariah-clone.esc.rzg.mpg.de/idp/shibboleth" />
<property name="useOriginalSubjectNameID" value="false" />
<property name="subjectIdAttributeName" value="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"></property>
<property name="subjectIdAttributeFormat" value="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" />
<property name="noAggregationRequiredForEndpoints">
<array>
<value type="java.lang.String">https://ldap-dariah.esc.rzg.mpg.de/idp/shibboleth</value>
<value type="java.lang.String">https://ldap-dariah-clone.esc.rzg.mpg.de/idp/shibboleth</value>
</array>
</property>
<property name="requiredAttributes">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment