add opa, refactor auth to authentication

This commit is contained in:
Gsk54
2023-01-16 15:03:58 +01:00
parent 0a2a44bc15
commit 6802cd3620
61 changed files with 456 additions and 381 deletions

7
opa/user/user1.rego Normal file
View File

@@ -0,0 +1,7 @@
package user1
default allow := false
allow := true {
input.user == "jean"
}

7
opa/user/user2.rego Normal file
View File

@@ -0,0 +1,7 @@
package user2
default allow := false
allow := true {
input.user == "pierre"
}