From a167960af54b929f5fb932d5a2cefb7ea27ebce0 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:37:06 -0600 Subject: [PATCH] IDP-1041 remove expirychecker dateFormat --- README.md | 4 ---- modules/expirychecker/src/Auth/Process/ExpiryDate.php | 5 ----- 2 files changed, 9 deletions(-) diff --git a/README.md b/README.md index 8e768d1..32f1fe1 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,6 @@ Example (in `metadata/saml20-idp-hosted.php`): // Optional: 'warnDaysBefore' => 14, 'originalUrlParam' => 'originalurl', - 'dateFormat' => 'm.d.Y', // Use PHP's date syntax. 'loggerClass' => '\\Sil\\Psr3Adapters\\Psr3SamlLogger', ], @@ -184,9 +183,6 @@ returned when the user successfully authenticates. The `warnDaysBefore` parameter should be an integer representing how many days before the expiry date the "about to expire" warning will be shown to the user. -The `dateFormat` parameter specifies how you want the date to be formatted, -using PHP `date()` syntax. See . - The `loggerClass` parameter specifies the name of a PSR-3 compatible class that can be autoloaded, to use as the logger within ExpiryDate. diff --git a/modules/expirychecker/src/Auth/Process/ExpiryDate.php b/modules/expirychecker/src/Auth/Process/ExpiryDate.php index 3efd9e6..4a91002 100644 --- a/modules/expirychecker/src/Auth/Process/ExpiryDate.php +++ b/modules/expirychecker/src/Auth/Process/ExpiryDate.php @@ -32,7 +32,6 @@ class ExpiryDate extends ProcessingFilter private string|null $accountNameAttr = null; private string $employeeIdAttr = 'employeeNumber'; private string|null $expiryDateAttr = null; - private string $dateFormat = 'Y-m-d'; protected LoggerInterface $logger; @@ -70,10 +69,6 @@ public function __construct(array $config, mixed $reserved) Validator::STRING, Validator::NOT_EMPTY, ], - 'dateFormat' => [ - Validator::STRING, - Validator::NOT_EMPTY, - ], ]); }