Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdlp/oc-basicauthentication-plugin
October CMS plugin which adds HTTP Basic Authentication
https://github.com/vdlp/oc-basicauthentication-plugin
basic-authentication basicauthentication october-cms octobercms octobercms-plugin php plugin security
Last synced: about 4 hours ago
JSON representation
October CMS plugin which adds HTTP Basic Authentication
- Host: GitHub
- URL: https://github.com/vdlp/oc-basicauthentication-plugin
- Owner: vdlp
- License: gpl-2.0
- Created: 2019-01-22T14:57:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T13:47:27.000Z (8 months ago)
- Last Synced: 2024-10-20T09:15:32.302Z (26 days ago)
- Topics: basic-authentication, basicauthentication, october-cms, octobercms, octobercms-plugin, php, plugin, security
- Language: PHP
- Homepage:
- Size: 83 KB
- Stars: 4
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Vdlp.BasicAuthentication
Allows users to manage Basic Authentication credentials for multiple hostnames and environments.
## Requirements
* October CMS ^2.0
* PHP 8.0.2 or higher## Installation
```
composer require vdlp/oc-basicauthentication-plugin
```## Configuration
To configure this plugin execute the following command:
```
php artisan vendor:publish --provider="Vdlp\BasicAuthentication\ServiceProviders\BasicAuthenticationServiceProvider" --tag="config"
```This will create a `config/basicauthentication.php` file in your app where you can modify the configuration if you don't want to use `.env` variables.
## Enable / disable plugin
> By default basic authentication is disabled.
To enable basic authentication, you have to set the env variable to `BASIC_AUTHENTICATION_ENABLED` to `true` in your `.env` file or edit the published config file.
## A Note On FastCGI
If you are using PHP FastCGI, HTTP Basic authentication may not work correctly out of the box. The following lines should be added to your `.htaccess` file:
```
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
```## Questions? Need help?
If you have any question about how to use this plugin, please don't hesitate to contact us at [email protected]. We're happy to help you.