summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-05-23 08:02:33 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-05-23 08:11:09 (GMT)
commitb0fb24c95150c2f4f8eb681fcd9a9f3d7fb2a566 (patch)
treea6a8819cdec6f8726fd00925ca74976e76dd6a0d
parent16aa8a74130b3d175c8c547a3c8ba38d5526cce1 (diff)
downloadlasso-b0fb24c95150c2f4f8eb681fcd9a9f3d7fb2a566.zip
lasso-b0fb24c95150c2f4f8eb681fcd9a9f3d7fb2a566.tar.gz
lasso-b0fb24c95150c2f4f8eb681fcd9a9f3d7fb2a566.tar.bz2
Do not ignore WantAuthnRequestSigned value with hint MAYBE (fixes #33354)
Bug introduced in commit 394680712.
-rw-r--r--lasso/saml-2.0/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c
index 91ff302..6e8f755 100644
--- a/lasso/saml-2.0/login.c
+++ b/lasso/saml-2.0/login.c
@@ -115,8 +115,8 @@ static gboolean want_authn_request_signed(LassoProvider *provider) {
s = lasso_provider_get_metadata_one_for_role(provider, LASSO_PROVIDER_ROLE_IDP,
LASSO_SAML2_METADATA_ATTRIBUTE_WANT_AUTHN_REQUEST_SIGNED);
- if (lasso_strisequal(s,"false")) {
- rc = FALSE;
+ if (lasso_strisequal(s, "true")) {
+ rc = TRUE;
}
lasso_release_string(s);
return rc;