2017 © Pedro PelĂĄez
 

simplesamlphp-module simplesamlphp-module-expirychecker

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

image

silinternational/simplesamlphp-module-expirychecker

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  • Thursday, February 8, 2018
  • by fillup
  • Repository
  • 5 Watchers
  • 0 Stars
  • 378 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 13 Versions
  • 5 % Grown

The README.md

Archived

This repository is no longer maintained. It has been included directly in https://github.com/silinternational/ssp-base., (*1)

--, (*2)

ExpiryChecker simpleSAMLphp Module

A simpleSAMLphp module for warning users that their password will expire soon or that it has already expired., (*3)

NOTE: This module does not prevent the user from logging in. It merely shows a warning page (if their password is about to expire), with the option to change their password now or later, or it tells the user that their password has already expired, with the only option being to go change their password now. Both of these pages will be bypassed (for varying lengths of time) if the user has recently seen one of those two pages, in order to allow the user to get to the change-password website (assuming it is also behind this IdP). If the user should not be allowed to log in at all, the simpleSAMLphp Auth. Source should consider the credentials provided by the user to be invalid., (*4)

The expirychecker module is implemented as an Authentication Processing Filter, or AuthProc. That means it can be configured in the global config.php file or the SP remote or IdP hosted metadata., (*5)

It is recommended to run the expirychecker module at the IdP, and configure the filter to run before all the other filters you may have enabled., (*6)

How to use the module

Simply include simplesamlphp/composer-module-installer and this module as required in your composer.json file. The composer-module-installer package will discover this module and copy it into the modules folder within simplesamlphp., (*7)

You will then need to set filter parameters in your config. We recommend adding them to the 'authproc' array in your metadata/saml20-idp-hosted.php file, but you are also able to put them in the 'authproc.idp' array in your config/config.php file., (*8)

Example (in metadata/saml20-idp-hosted.php):, (*9)

'authproc' => [
    10 => [
        // Required:
        'class' => 'expirychecker:ExpiryDate',
        'accountNameAttr' => 'cn',
        'expiryDateAttr' => 'schacExpiryDate',
        'passwordChangeUrl' => 'https://idm.example.com/pwdmgr/',

        // Optional:
        'warnDaysBefore' => 14,
        'originalUrlParam' => 'originalurl',
        'dateFormat' => 'm.d.Y', // Use PHP's date syntax.
        'loggerClass' => '\\Sil\\Psr3Adapters\\Psr3SamlLogger',
    ],

    // ...
],

The accountNameAttr parameter represents the SAML attribute name which has the user's account name stored in it. In certain situations, this will be displayed to the user, as well as being used in log messages., (*10)

The expiryDateAttr parameter represents the SAML attribute name which has the user's expiry date, which must be formated as YYYYMMDDHHMMSSZ (e.g. 20111011235959Z). Those two attributes need to be part of the attribute set returned when the user successfully authenticates., (*11)

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., (*12)

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., (*13)

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

Contributing

To contribute, please submit issues or pull requests at https://github.com/silinternational/simplesamlphp-module-expirychecker, (*15)

Acknowledgements

This is adapted from the ssp-iidp-expirycheck and expirycheck modules. Thanks to Alex Mihičinac, Steve Moitozo, and Steve Bagwell for the initial work they did on those two modules., (*16)

The Versions

08/02 2018

dev-master

9999999-dev

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

08/02 2018

2.0.4

2.0.4.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

08/02 2018

dev-develop

dev-develop

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

08/02 2018

dev-feature/fix-undefined-variable-use

dev-feature/fix-undefined-variable-use

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

08/02 2018

dev-feature/fix-json-logs

dev-feature/fix-json-logs

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

08/02 2018

dev-feature/improve-logging

dev-feature/improve-logging

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

06/02 2018

2.0.3

2.0.3.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

06/02 2018

2.0.2

2.0.2.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

30/08 2017

2.0.1

2.0.1.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

24/07 2017

2.0.0

2.0.0.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

24/07 2017

1.0.1

1.0.1.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

14/07 2017

1.0.0

1.0.0.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson

07/07 2017

0.1.0

0.1.0.0

simpleSAMLphp module for warning users that their password will expire soon or has already expired.

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by Matt Henderson