Revision: 1787 Author: olavmrk Date: Fri Sep 25 00:53:59 2009 Log: www/saml2/idp/SSOService: Save RelayState in request restart URL.
Fixes issue 213 http://code.google.com/p/simplesamlphp/source/detail?r=1787 Modified: /trunk/www/saml2/idp/SSOService.php ======================================= --- /trunk/www/saml2/idp/SSOService.php Thu Sep 24 02:29:41 2009 +++ /trunk/www/saml2/idp/SSOService.php Fri Sep 25 00:53:59 2009 @@ -271,6 +271,9 @@ 'Issuer' => $_GET['spentityid'], ); + if (isset($_GET['RelayState'])) { + $requestcache['RelayState'] = $_GET['RelayState']; + } } else { SimpleSAML_Utilities::fatalError($session->getTrackID(), 'SSOSERVICEPARAMS'); @@ -329,11 +332,16 @@ /* The user will be redirected to this URL if the session is lost. This will cause an * unsoliced authentication response to be sent to the SP. */ + $sessionLostParams = array( + 'spentityid' => $requestcache['Issuer'], + ); + if (isset($requestcache['RelayState'])) { + $sessionLostParams['RelayState'] = $requestcache['RelayState']; + } + $sessionLostURL = SimpleSAML_Utilities::addURLparameter( $metadata->getGenerated('SingleSignOnService', 'saml20-idp-hosted'), - array( - 'spentityid' => $requestcache['Issuer'], - )); + $sessionLostParams); $hints = array( 'SPMetadata' => $metadata->getMetaData($requestcache['Issuer'], 'saml20-sp-remote'), --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "simpleSAMLphp commits" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simplesamlphp-commits?hl=en -~----------~----~----~----~------~----~------~--~---
