mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-02 19:02:40 +00:00
add opa, refactor auth to authentication
This commit is contained in:
7
opa/user/user1.rego
Normal file
7
opa/user/user1.rego
Normal file
@@ -0,0 +1,7 @@
|
||||
package user1
|
||||
|
||||
default allow := false
|
||||
|
||||
allow := true {
|
||||
input.user == "jean"
|
||||
}
|
||||
7
opa/user/user2.rego
Normal file
7
opa/user/user2.rego
Normal file
@@ -0,0 +1,7 @@
|
||||
package user2
|
||||
|
||||
default allow := false
|
||||
|
||||
allow := true {
|
||||
input.user == "pierre"
|
||||
}
|
||||
Reference in New Issue
Block a user