Skip to content

Commit ad13d3d

Browse files
committed
SAML2UserAuthenticator: check that request params has SAMLResponse
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 7ee4176 commit ad13d3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAML2UserAuthenticator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public Pair<Boolean, ActionOnFailedAuthentication> authenticate(String username,
4848
return new Pair<Boolean, ActionOnFailedAuthentication>(false, null);
4949
} else {
5050
User user = _userDao.getUser(userAccount.getId());
51-
// TODO: check SAMLRequest, signature etc. from requestParameters
52-
if (user != null && SAMLUtils.checkSAMLUserId(user.getUuid())) {
51+
if (user != null && SAMLUtils.checkSAMLUserId(user.getUuid()) &&
52+
requestParameters.containsKey(SAMLUtils.SAML_RESPONSE)) {
5353
return new Pair<Boolean, ActionOnFailedAuthentication>(true, null);
5454
}
5555
}

0 commit comments

Comments
 (0)