https://github.com/luyadev/luya-module-basicauth
LUYA Module to replace the htaccess basic auth as it does not work in angular context.
https://github.com/luyadev/luya-module-basicauth
authorization hacktoberfest htaccess luya
Last synced: 5 months ago
JSON representation
LUYA Module to replace the htaccess basic auth as it does not work in angular context.
- Host: GitHub
- URL: https://github.com/luyadev/luya-module-basicauth
- Owner: luyadev
- License: mit
- Created: 2016-03-24T10:37:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-25T14:23:31.000Z (about 4 years ago)
- Last Synced: 2025-09-29T00:23:47.442Z (9 months ago)
- Topics: authorization, hacktoberfest, htaccess, luya
- Language: PHP
- Homepage: https://luya.io
- Size: 2.86 MB
- Stars: 0
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BASIC AUTH LUYA MODULE
[](https://luya.io)

[](https://packagist.org/packages/luyadev/luya-module-basicauth)
[](https://packagist.org/packages/luyadev/luya-module-basicauth)
[](https://codeclimate.com/github/luyadev/luya-module-basicauth/test_coverage)
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:
```sh
composer require luyadev/luya-module-basicauth
```
Add the module to your configuration in the modules section.
```php
'modules' => [
//...
'basicauth' => [
'class' => 'luya\basicauth\Module',
'password' => '',
]
]
```
As the module checks the authentication status on before each request, you have to bootstrap the module inside the bootstrap section of your config:
```php
'bootstrap' => [
'basicauth',
],
```
All frontend requests are now protected with your entered password from the config.