Changeset 33465
- Timestamp:
- 05/23/12 14:07:04 (2 days ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/dcSamlPlugin/trunk/lib/saml/CustomSamlResponse.class.php
r33458 r33465 10 10 class CustomSamlResponse extends SamlResponse 11 11 { 12 12 13 /** 13 14 * Return the Dom xml xpath … … 16 17 private function get_xpath() 17 18 { 19 $this->xml->load(self::XML_DIR); 18 20 $xpath = new DOMXPath($this->xml); 19 21 $xpath->registerNamespace("samlp","urn:oasis:names:tc:SAML:2.0:protocol"); plugins/dcSamlPlugin/trunk/lib/user/dcSamlSecurityUser.class.php
r33458 r33465 21 21 $this->setAuthenticated(true); 22 22 $this->loadSamlCredentials(); 23 return true; 23 24 } 24 25 … … 70 71 $remove = sfConfig::get('app_dc_saml_plugin_remove_permission_prefix', ''); 71 72 $perm_name = $permission->getAttribute(sfConfig::get('app_dc_saml_plugin_attribute_name_of_the_credential_name', 'permission_name')); 72 if($remove == '')73 if($remove != '') 73 74 { 74 75 if(strpos($perm_name, $remove) === 0) plugins/dcSamlPlugin/trunk/lib/vendor/php-saml/onelogin/saml/response.php
r33399 r33465 25 25 private $xpath; 26 26 27 const XML_DIR = "/tmp/saml.xml"; 28 27 29 /** 28 30 * Construct the response object. … … 39 41 $this->xml = new DOMDocument(); 40 42 $this->xml->loadXML($this->assertion); 43 $this->xml->save(self::XML_DIR); 41 44 } 42 45