domain = (string)$config['domain']; $this->client = new sspmod_cdc_Client($this->domain); } /** * Redirect to page setting CDC. * * @param array &$state The request state. */ public function process(&$state) { assert('is_array($state)'); if (!isset($state['Source']['entityid'])) { SimpleSAML_Logger::warning('saml:CDC: Could not find IdP entityID.'); return; } /* Save state and build request. */ $id = SimpleSAML_Auth_State::saveState($state, 'cdc:resume'); $returnTo = SimpleSAML_Module::getModuleURL('cdc/resume.php', array('domain' => $this->domain)); $params = array( 'id' => $id, 'entityID' => $state['Source']['entityid'], ); $this->client->sendRequest($returnTo, 'append', $params); } }