add auth functionality
This commit is contained in:
19
policies/testdata/principals.yaml
vendored
Normal file
19
policies/testdata/principals.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# yaml-language-server: $schema=https://api.cerbos.dev/latest/cerbos/policy/v1/TestFixture/Principals.schema.json
|
||||
# docs: https://docs.cerbos.dev/cerbos/latest/policies/compile#_sharing_test_fixtures
|
||||
|
||||
principals:
|
||||
user#1:
|
||||
id: user#1
|
||||
roles:
|
||||
- user
|
||||
attr: {}
|
||||
admin#2:
|
||||
id: admin#2
|
||||
roles:
|
||||
- admin
|
||||
attr: {}
|
||||
thirdParty#3:
|
||||
id: thirdParty#3
|
||||
roles:
|
||||
- thirdParty
|
||||
attr: {}
|
||||
12
policies/testdata/resources.yaml
vendored
Normal file
12
policies/testdata/resources.yaml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# yaml-language-server: $schema=https://api.cerbos.dev/latest/cerbos/policy/v1/TestFixture/Resources.schema.json
|
||||
# docs: https://docs.cerbos.dev/cerbos/latest/policies/compile#_sharing_test_fixtures
|
||||
|
||||
resources:
|
||||
data#1:
|
||||
id: data#1
|
||||
kind: data
|
||||
attr: {}
|
||||
privateData#2:
|
||||
id: privateData#2
|
||||
kind: privateData
|
||||
attr: {}
|
||||
Reference in New Issue
Block a user