Skip to content

Commit

Permalink
Merge pull request #266 from silinternational/feature/remove-dateformat
Browse files Browse the repository at this point in the history
IDP-1041 remove expirychecker dateFormat
  • Loading branch information
briskt authored Jul 19, 2024
2 parents fcbf62a + a167960 commit c7ea413
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],

Expand All @@ -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 <http://php.net/manual/en/function.date.php>.

The `loggerClass` parameter specifies the name of a PSR-3 compatible class that
can be autoloaded, to use as the logger within ExpiryDate.

Expand Down
5 changes: 0 additions & 5 deletions modules/expirychecker/src/Auth/Process/ExpiryDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -70,10 +69,6 @@ public function __construct(array $config, mixed $reserved)
Validator::STRING,
Validator::NOT_EMPTY,
],
'dateFormat' => [
Validator::STRING,
Validator::NOT_EMPTY,
],
]);
}

Expand Down

0 comments on commit c7ea413

Please sign in to comment.