pg/http-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

Extension for Nette Framework: set presenters names to secure and they will be secured via http authentification. IAuthenticator service is used for validating user credentials.

v1.1.2 2018-08-25 06:27 UTC

This package is auto-updated.

Last update: 2021-08-11 19:42:10 UTC


README

Build Status Latest Stable Version License Total Downloads Gitter

HttpAuth

  1. Install via composer
composer require pg/http-auth
  1. Register extension in config.neon:
extensions:
	httpAuth: PG\HttpAuth\DI\HttpAuthExtension

Do not forget to register IAuthenticator service.

  1. Tell which presenters shoul be secured (in case no presenter name given, all presenters are secured). Format - Module:Module:Presenter:
simpleHttpAuth:
	presenters: [Front:Admin] # Secure presenter class App\FrontModule\Presenters\AdminPresenter