36 lines
782 B
YAML
36 lines
782 B
YAML
roleclaims:
|
|
- key: '.postgrest.a_role'
|
|
data:
|
|
postgrest:
|
|
a_role: postgrest_test_author
|
|
expected_status: 200
|
|
- key: '.customObject.manyRoles[1]'
|
|
data:
|
|
customObject:
|
|
manyRoles:
|
|
- other
|
|
- postgrest_test_author
|
|
expected_status: 200
|
|
- key: '."https://www.example.com/roles"[0].value'
|
|
data:
|
|
'https://www.example.com/roles':
|
|
- value: postgrest_test_author
|
|
expected_status: 200
|
|
- key: '.myDomain[3]'
|
|
data:
|
|
myDomain:
|
|
- other
|
|
- postgrest_test_author
|
|
expected_status: 401
|
|
- key: '.myRole'
|
|
data:
|
|
role: postgrest_test_author
|
|
expected_status: 401
|
|
invalidroleclaimkeys:
|
|
- 'role.other'
|
|
- '.role##'
|
|
- '.my_role;;domain'
|
|
- '.#$$%&$%/'
|
|
- ''
|
|
- '1234'
|