File tree 6 files changed +40
-12
lines changed
6 files changed +40
-12
lines changed Original file line number Diff line number Diff line change 14
14
strategy :
15
15
fail-fast : true
16
16
matrix :
17
- php : [ 8.0, 7.4 ]
17
+ php : [ 8.0 ]
18
18
stability : [ prefer-lowest, prefer-stable ]
19
19
20
20
name : PHP ${{ matrix.php }} - ${{ matrix.stability }}
Original file line number Diff line number Diff line change 1
- composer.lock
2
- .idea /
1
+ /.idea
2
+ /composer.lock
3
+ /vendor
4
+ /modules
Original file line number Diff line number Diff line change @@ -4,12 +4,27 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 3.2.0] - 2022-09-23
8
+
9
+ ### Added
10
+
11
+ - Basic Authentication added to October CMS backend routes.
12
+
13
+ ### Removed
14
+
15
+ - Removed support for October CMS 1.0
16
+ - Removed support for PHP 7.4
17
+
7
18
## [ 3.1.0] - 2022-04-12
8
19
20
+ ### Added
21
+
9
22
- Add October CMS 3.x to supported versions.
10
23
11
24
## [ 3.0.2] - 2022-03-22
12
25
26
+ ### Changed
27
+
13
28
- Rename migration class (duplicate class name).
14
29
15
30
## [ 3.0.1] - 2022-03-15
Original file line number Diff line number Diff line change 5
5
namespace Vdlp \BasicAuthentication ;
6
6
7
7
use Backend \Helpers \Backend as BackendHelper ;
8
+ use Illuminate \Routing \Router ;
8
9
use October \Rain \Foundation \Application ;
9
- use October \Rain \Foundation \Http \Kernel ;
10
10
use System \Classes \PluginBase ;
11
11
use Vdlp \BasicAuthentication \Console \CreateCredentialsCommand ;
12
12
use Vdlp \BasicAuthentication \Http \Middleware \BasicAuthenticationMiddleware ;
@@ -40,14 +40,13 @@ public function boot(): void
40
40
(bool ) config ('basicauthentication.enabled ' , false ) === false
41
41
|| $ application ->runningInConsole ()
42
42
|| $ application ->runningUnitTests ()
43
- || $ application ->runningInBackend ()
44
43
) {
45
44
return ;
46
45
}
47
46
48
- /** @var Kernel $kernel */
49
- $ kernel = $ application[ ' Illuminate\Contracts\Http\Kernel ' ] ;
50
- $ kernel -> prependMiddleware ( BasicAuthenticationMiddleware::class);
47
+ /** @var Router $router */
48
+ $ router = $ application-> make (Router::class) ;
49
+ $ router -> pushMiddlewareToGroup ( ' web ' , BasicAuthenticationMiddleware::class);
51
50
}
52
51
53
52
public function registerPermissions (): array
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vdlp/oc-basicauthentication-plugin" ,
3
3
"description" : " Protect your website with Basic Authentication." ,
4
- "license" : " GPL-2.0" ,
4
+ "license" : " GPL-2.0-only " ,
5
5
"type" : " october-plugin" ,
6
6
"authors" : [
7
7
{
13
13
14
14
},
15
15
"require" : {
16
- "php" : " ^7.4 || ^ 8.0" ,
17
- "october/system " : " ^1.0 || ^2.0 || ^3 .0" ,
18
- "composer/installers " : " ^1.0 || ^ 2.0"
16
+ "php" : " ^8.0.2 " ,
17
+ "composer/installers " : " ^1.0 || ^2.0" ,
18
+ "october/system " : " >= 2.0"
19
19
},
20
+ "repositories" : [
21
+ {
22
+ "type" : " composer" ,
23
+ "url" : " https://gateway.octobercms.com"
24
+ }
25
+ ],
20
26
"archive" : {
21
27
"exclude" : [
22
28
" .gitattributes" ,
23
29
" .gitignore" ,
24
30
" .github"
25
31
]
32
+ },
33
+ "config" : {
34
+ "allow-plugins" : {
35
+ "composer/installers" : true
36
+ }
26
37
}
27
38
}
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ v3.0.1:
14
14
v3.0.2 :
15
15
- " Rename migration class (duplicate class name)."
16
16
v3.1.0 : " Add October CMS 3.x to supported versions."
17
+ v3.2.0 : " Basic Authentication added to October CMS backend routes."
You can’t perform that action at this time.
0 commit comments