Skip to content
Snippets Groups Projects
Commit 57740964 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fixes for modules/authX509

parent 60f7bce2
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,10 @@ namespace SimpleSAML\Module\authX509\Auth\Process;
class ExpiryWarning extends \SimpleSAML\Auth\ProcessingFilter
{
/** @var int */
private $warndaysbefore = 30;
/** @var string|null */
private $renewurl = null;
/**
......@@ -57,6 +59,7 @@ class ExpiryWarning extends \SimpleSAML\Auth\ProcessingFilter
* is informed about the expiry date of his/her certificate.
*
* @param array $state The state of the response.
* @return void
*/
public function process(&$state)
{
......
......@@ -13,18 +13,21 @@ class X509userCert extends \SimpleSAML\Auth\Source
{
/**
* x509 attributes to use from the certificate for searching the user in the LDAP directory.
* @var array
*/
private $x509attributes = ['UID' => 'uid'];
/**
* LDAP attribute containing the user certificate.
* This can be set to NULL to avoid looking up the certificate in LDAP
* @var array|null
*/
private $ldapusercert = ['userCertificate;binary'];
/**
* LDAPConfigHelper object
* @var \SimpleSAML\Module\ldap\ConfigHelper
*/
private $ldapcf;
......@@ -56,8 +59,6 @@ class X509userCert extends \SimpleSAML\Auth\Source
$config,
'Authentication source '.var_export($this->authId, true)
);
return;
}
......@@ -67,6 +68,7 @@ class X509userCert extends \SimpleSAML\Auth\Source
* This function can be overloaded by a child authentication class that wish to perform some operations on failure.
*
* @param array &$state Information about the current authentication.
* @return void
*/
public function authFailed(&$state)
{
......@@ -89,6 +91,7 @@ class X509userCert extends \SimpleSAML\Auth\Source
* page. On failure, The authX509:X509error.php template is loaded.
*
* @param array &$state Information about the current authentication.
* @return void
*/
public function authenticate(&$state)
{
......@@ -199,12 +202,12 @@ class X509userCert extends \SimpleSAML\Auth\Source
* This function can be overloaded by a child authentication class that wish to perform some operations after login.
*
* @param array &$state Information about the current authentication.
* @return void
*/
public function authSuccesful(&$state)
{
\SimpleSAML\Auth\Source::completeAuth($state);
assert(false); // should never be reached
return;
}
}
<?php
$this->data['header'] = $this->t('{authX509:X509error:certificate_header}');
$this->includeAtTemplateBase('includes/header.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment