diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php
index 20897dcf370d99ec59cc5ddf1a1a1a72d5874379..15f584d7e6bea66470d37eaef1e95f64139d1548 100644
--- a/modules/saml/lib/IdP/SAML2.php
+++ b/modules/saml/lib/IdP/SAML2.php
@@ -282,6 +282,7 @@ class sspmod_saml_IdP_SAML2 {
 			$consumerIndex = NULL;
 			$extensions = NULL;
 			$allowCreate = TRUE;
+			$authnContext = null;
 
 			$idpInit = TRUE;
 
@@ -317,6 +318,7 @@ class sspmod_saml_IdP_SAML2 {
 			$protocolBinding = $request->getProtocolBinding();
 			$consumerIndex = $request->getAssertionConsumerServiceIndex();
 			$extensions = $request->getExtensions();
+			$authnContext = $request->getRequestedAuthnContext();
 
 			$nameIdPolicy = $request->getNameIdPolicy();
 			if (isset($nameIdPolicy['Format'])) {
@@ -384,6 +386,7 @@ class sspmod_saml_IdP_SAML2 {
 			'saml:AllowCreate' => $allowCreate,
 			'saml:Extensions' => $extensions,
 			'saml:AuthnRequestReceivedAt' => microtime(TRUE),
+			'saml:RequestedAuthnContext' => $authnContext,
 		);
 
 		$idp->handleAuthenticationRequest($state);