summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/authz/local_check_service.go31
-rw-r--r--pkg/authz/server_test.go1
2 files changed, 15 insertions, 17 deletions
diff --git a/pkg/authz/local_check_service.go b/pkg/authz/local_check_service.go
index e165143..33c669c 100644
--- a/pkg/authz/local_check_service.go
+++ b/pkg/authz/local_check_service.go
@@ -16,22 +16,21 @@ import (
)
var public map[string]bool = map[string]bool{
- "GET:/": true,
- "GET:/application.js": true,
- "GET:/callback": true,
- "GET:/dashboard/nav": true,
- "GET:/favicon.ico": true,
- "GET:/favicon.png": true,
- "GET:/health": true,
- "GET:/htmx.js": true,
- "GET:/index.html": true,
- "GET:/logo.png": true,
- "GET:/pico.min.css": true,
- "GET:/signout": true,
- "GET:/sparkle": true,
- "GET:/sparkles": true,
- "GET:/vue.global.js": true,
- "POST:/sparkles/restore": true,
+ "GET:/": true,
+ "GET:/application.js": true,
+ "GET:/callback": true,
+ "GET:/dashboard/nav": true,
+ "GET:/favicon.ico": true,
+ "GET:/favicon.png": true,
+ "GET:/health": true,
+ "GET:/htmx.js": true,
+ "GET:/index.html": true,
+ "GET:/logo.png": true,
+ "GET:/pico.min.css": true,
+ "GET:/signout": true,
+ "GET:/sparkle": true,
+ "GET:/sparkles": true,
+ "GET:/vue.global.js": true,
}
type LocalCheckService struct {
diff --git a/pkg/authz/server_test.go b/pkg/authz/server_test.go
index 9da2800..7d63c5c 100644
--- a/pkg/authz/server_test.go
+++ b/pkg/authz/server_test.go
@@ -79,7 +79,6 @@ func TestServer(t *testing.T) {
{status: codes.OK, http: &HTTPRequest{Method: "GET", Path: "/sparkles"}},
{status: codes.OK, http: &HTTPRequest{Method: "GET", Path: "/vue.global.js"}},
{status: codes.OK, http: &HTTPRequest{Method: "POST", Path: "/sparkles", Headers: loggedInHeaders}},
- {status: codes.OK, http: &HTTPRequest{Method: "POST", Path: "/sparkles/restore"}},
{status: codes.PermissionDenied, http: &HTTPRequest{Method: "GET", Path: "/dashboard"}},
{status: codes.PermissionDenied, http: &HTTPRequest{Method: "GET", Path: "/dashboard", Headers: invalidHeaders}},
{status: codes.PermissionDenied, http: &HTTPRequest{Method: "POST", Path: "/sparkles"}},