Commit 818967e3 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Fix for DARIAH-IdP no longer providing endpoint ID (not necessary

anyway)
parent 07fab41c
Pipeline #15421 passed with stages
in 2 minutes and 43 seconds
......@@ -12,7 +12,7 @@ allprojects {
apply plugin: "maven-publish"
group = 'eu.dariah.de'
version = '1.3.0-SNAPSHOT'
version = '1.4.0-SNAPSHOT'
repositories {
mavenLocal()
......
......@@ -162,13 +162,9 @@ public abstract class BaseUserService implements UserService, SAMLUserDetailsSer
}
}
if (nameId.getNameQualifier()!=null && !nameId.getNameQualifier().isEmpty()) {
fetchEndpoint = nameId.getNameQualifier();
} else {
logger.error("No reidentifiable entityId available for user's home IDP");
throw new UserCredentialsException(UserCredentialsExceptionTypes.ID_ATTRIBUTE_NOT_PROVIDED, "No reidentifiable entityId available for user's home IDP");
}
fetchEndpoint = nameId.getNameQualifier();
SAMLUserImpl u = new SAMLUserImpl();
u.setEndpointId(fetchEndpoint);
u.setEndpointName(fetchEndpoint);
......
Markdown is supported
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