Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDP-1041 remove expirychecker dateFormat #266

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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