Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
36bcd41e
Commit
36bcd41e
authored
Apr 15, 2016
by
michael.simon
Browse files
idp lookup via user object, and only secondary via scope.
parent
87cb7125
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-service/src/main/java/edu/kit/scc/webreg/service/impl/UserLoginServiceImpl.java
View file @
36bcd41e
...
...
@@ -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"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment