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 { ...@@ -12,7 +12,7 @@ allprojects {
apply plugin: "maven-publish" apply plugin: "maven-publish"
group = 'eu.dariah.de' group = 'eu.dariah.de'
version = '1.3.0-SNAPSHOT' version = '1.4.0-SNAPSHOT'
repositories { repositories {
mavenLocal() mavenLocal()
......
...@@ -162,13 +162,9 @@ public abstract class BaseUserService implements UserService, SAMLUserDetailsSer ...@@ -162,13 +162,9 @@ public abstract class BaseUserService implements UserService, SAMLUserDetailsSer
} }
} }
if (nameId.getNameQualifier()!=null && !nameId.getNameQualifier().isEmpty()) {
fetchEndpoint = nameId.getNameQualifier(); 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");
}
SAMLUserImpl u = new SAMLUserImpl(); SAMLUserImpl u = new SAMLUserImpl();
u.setEndpointId(fetchEndpoint); u.setEndpointId(fetchEndpoint);
u.setEndpointName(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