/http-auth

Extension for Nette Framework: set user, password and presenters names to secure and they will be secured via simple http authentification

Primary LanguagePHPMIT LicenseMIT

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