luyadev / luya-module-basicauth
Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.
Installs: 44 059
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 5
Open Issues: 0
Type:luya-module
Requires (Dev)
- luyadev/luya-testsuite: ^1.0
- unglue/client: ^1.0
This package is auto-updated.
Last update: 2024-11-25 19:36:38 UTC
README
Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.
Installation & Usage
Add the luyadev/luya-module-basicauth
package to your composer config:
composer require luyadev/luya-module-basicauth
Add the module to your configuration in the modules section.
'modules' => [ //... 'basicauth' => [ 'class' => 'luya\basicauth\Module', 'password' => '<DEFINE_THE_PASSWORD_HERE>', ] ]
As the module checks the authentication status on before each request, you have to bootstrap the module inside the bootstrap section of your config:
'bootstrap' => [ 'basicauth', ],
All frontend requests are now protected with your entered password from the config.