LUYA Module to replace the htaccess base auth as it does not work in angular context.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
composer.json

README.md

BASIC AUTH LUYA MODULE

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

composer require the luya basic auth module

composer require luyadev/luya-module-basicauth:^1.0@dev

add the module to your config

'modules' => [
    'basicauth' => [
        'class' => 'luya\basicauth\Module',
        'password' => '<DEFINE_THE_PASSWORD_HERE>',
    ]
],

as this module takes care each before every request you have to bootstrap this module as in the boostrap section of your config:

'bootstrap' => [
    'basicauth',
],

Now each request of your luya instance requres the entered password from your configuration files.