Development

Changeset 33465

You must first sign up to be able to contribute.

Changeset 33465

Show
Ignore:
Timestamp:
05/23/12 14:07:04 (2 days ago)
Author:
mbrown
Message:

Se agrega hack para corregir error con determinados caracteres al levantar xml de respuesta desde string. Se corrige error al hacer la carga de los permisos

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/dcSamlPlugin/trunk/lib/saml/CustomSamlResponse.class.php

    r33458 r33465  
    1010class CustomSamlResponse extends SamlResponse 
    1111{ 
     12 
    1213  /** 
    1314   * Return the Dom xml xpath 
     
    1617  private function get_xpath() 
    1718  { 
     19    $this->xml->load(self::XML_DIR); 
    1820    $xpath = new DOMXPath($this->xml); 
    1921    $xpath->registerNamespace("samlp","urn:oasis:names:tc:SAML:2.0:protocol"); 
  • plugins/dcSamlPlugin/trunk/lib/user/dcSamlSecurityUser.class.php

    r33458 r33465  
    2121    $this->setAuthenticated(true); 
    2222    $this->loadSamlCredentials(); 
     23    return true; 
    2324  } 
    2425 
     
    7071      $remove = sfConfig::get('app_dc_saml_plugin_remove_permission_prefix', ''); 
    7172      $perm_name = $permission->getAttribute(sfConfig::get('app_dc_saml_plugin_attribute_name_of_the_credential_name', 'permission_name')); 
    72       if($remove == '') 
     73      if($remove != '') 
    7374      { 
    7475        if(strpos($perm_name, $remove) === 0) 
  • plugins/dcSamlPlugin/trunk/lib/vendor/php-saml/onelogin/saml/response.php

    r33399 r33465  
    2525    private $xpath; 
    2626 
     27    const XML_DIR = "/tmp/saml.xml"; 
     28 
    2729    /** 
    2830     * Construct the response object. 
     
    3941      $this->xml = new DOMDocument(); 
    4042      $this->xml->loadXML($this->assertion); 
     43      $this->xml->save(self::XML_DIR); 
    4144    } 
    4245