From 51cabde0083bae8c0032866da48fa76d12888288 Mon Sep 17 00:00:00 2001 From: Brian Vuyk <brian@brianvuyk.com> Date: Mon, 11 May 2015 13:17:18 -0400 Subject: [PATCH] Add support for sender-vouches --- modules/saml/lib/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/saml/lib/Message.php b/modules/saml/lib/Message.php index 03d3949a5..a8bc8163d 100644 --- a/modules/saml/lib/Message.php +++ b/modules/saml/lib/Message.php @@ -588,7 +588,7 @@ class sspmod_saml_Message { $found = FALSE; $lastError = 'No SubjectConfirmation element in Subject.'; foreach ($assertion->getSubjectConfirmation() as $sc) { - if ($sc->Method !== SAML2_Const::CM_BEARER && $sc->Method !== SAML2_Const::CM_HOK) { + if ($sc->Method !== SAML2_Const::CM_BEARER && $sc->Method !== SAML2_Const::CM_HOK && $sc->Method !== SAML2_Const::CM_VOUCHES) { $lastError = 'Invalid Method on SubjectConfirmation: ' . var_export($sc->Method, TRUE); continue; } -- GitLab