CAS_Client::getAllowedProxyChains PHP Method

getAllowedProxyChains() public method

Answer the CAS_ProxyChain_AllowedList object for this client.
public getAllowedProxyChains ( ) : CAS_ProxyChain_AllowedList
return CAS_ProxyChain_AllowedList
    public function getAllowedProxyChains()
    {
        if (empty($this->_allowed_proxy_chains)) {
            $this->_allowed_proxy_chains = new CAS_ProxyChain_AllowedList();
        }
        return $this->_allowed_proxy_chains;
    }

Usage Example

Ejemplo n.º 1
1
 /**
  * Wrong order of valid regexp
  *
  * @return void
  *
  * @expectedException CAS_AuthenticationException
  * @outputBuffering enabled
  */
 public function testAllowedProxiesRegexpFailureWrongOrder()
 {
     $this->object->setTicket('ST-123456-asdfasdfasgww2323radf3');
     $this->object->getAllowedProxyChains()->allowProxyChain(new CAS_ProxyChain(array('/^https\\:\\/\\/anotherdomain.org\\/mysite\\/test2$/', '/http\\:\\/\\/firstproxy\\.com.*$/')));
     $result = $this->object->validateCAS20($url, $text_response, $tree_response);
     $this->assertFalse($result);
 }
All Usage Examples Of CAS_Client::getAllowedProxyChains
CAS_Client