31        parent::__construct(
$config, $reserved);
 
   33        assert(
'is_array($config)');
 
   35        if (array_key_exists(
'warndaysbefore', 
$config)) {
 
   36            $this->warndaysbefore = 
$config[
'warndaysbefore'];
 
   37            if (!is_string($this->warndaysbefore)) {
 
   38                throw new Exception(
'Invalid value for \'warndaysbefore\'-option to authX509::ExpiryWarning filter.');
 
   42        if (array_key_exists(
'renewurl', 
$config)) {
 
   43            $this->renewurl = 
$config[
'renewurl'];
 
   44            if (!is_string($this->renewurl)) {
 
   45                throw new Exception(
'Invalid value for \'renewurl\'-option to authX509::ExpiryWarning filter.');
 
   60        assert(
'is_array($state)');
 
   62        if (isset(
$state[
'isPassive']) && 
$state[
'isPassive'] === 
true) {
 
   67        if (!isset(
$_SERVER[
'SSL_CLIENT_CERT']) ||
 
   68            (
$_SERVER[
'SSL_CLIENT_CERT'] == 
'')) {
 
   72        $client_cert = 
$_SERVER[
'SSL_CLIENT_CERT'];
 
   73        $client_cert_data = openssl_x509_parse($client_cert);
 
   74        if ($client_cert_data == 
false) {
 
   78        $validTo = $client_cert_data[
'validTo_time_t'];
 
   80        $daysleft = (int)(($validTo - $now) / (24*60*60));
 
   81        if ($daysleft > $this->warndaysbefore) {
 
   87        $state[
'daysleft'] = $daysleft;
 
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static saveState(&$state, $stage, $rawId=false)
Save the state.
__construct($config, $reserved)
Initialize this filter.
process(&$state)
Process an authentication response.
if(!array_key_exists('StateId', $_REQUEST)) $id
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']