Commit 36bcd41e authored by michael.simon's avatar michael.simon
Browse files

idp lookup via user object, and only secondary via scope.

parent 87cb7125
......@@ -223,8 +223,13 @@ public class UserLoginServiceImpl implements UserLoginService, Serializable {
String username = splits[0];
String scope = splits[1];
SamlIdpMetadataEntity idp = idpDao.findByScope(scope);
SamlIdpMetadataEntity idp = user.getIdp();
if (idp == null) {
// if idp is not connected with user (legacy) try lookup via scope
idp = idpDao.findByScope(scope);
if (idp == null) {
throw new NoIdpForScopeException("scope unknown");
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