Skip to content

Commit

Permalink
feat(rules): new rules for multi tandent + multi shops
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Feb 13, 2024
1 parent 429c6f8 commit eb01c8e
Show file tree
Hide file tree
Showing 4 changed files with 796 additions and 344 deletions.
163 changes: 157 additions & 6 deletions datasets/demo-shop/data/seed-data/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shops-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -68,6 +76,14 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-root-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -105,7 +121,7 @@
name: shop000.admin000
firstName: Shop000
lastName: Admin000
email: shop000.admin@restorecommerce.io
email: shop000.admin000@restorecommerce.io
password: CNQJrH%KAayeDpf3h
defaultScope: restorecommerce-demo-shop-000-organization
roleAssociations:
Expand All @@ -117,6 +133,14 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shop-000-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -149,6 +173,63 @@
tokens:
- name: access-token
token: SHOP000ADMINISTRATOR000
---
id: restorecommerce-demo-shop-000-sales-000
name: shop000.sales000
firstName: Shop000
lastName: Sales000
email: [email protected]
password: CNQJrH%KAayeDpf3h
defaultScope: restorecommerce-demo-shop-000-organization
roleAssociations:
- id: restorecommerce-demo-shop-000-organization-sales-r-id
role: sales-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shop-000-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
modifiedBy: ""
owners:
- id: urn:restorecommerce:acs:names:ownerIndicatoryEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:ownerInstance
value: restorecommerce-demo-shop-000-organization
newEmail: ""
active: true
activationCode: ""
passwordHash: ""
guest: false
image:
id: ""
caption: ""
filename: ""
contentType: ""
url: ""
width: 0
height: 0
length: 0
userType: "ORG_USER"
invite: false
invitedByUserName: ""
invitedByUserFirstName: ""
invitedByUserLastName: ""
tokens:
- name: access-token
token: SHOP000SALES000
---
id: restorecommerce-demo-customer-000-moderator-000
name: customer000.moderator000
Expand All @@ -174,8 +255,22 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shops-organization
- id: user-r-id
- id: restorecommerce-demo-shops-organization-user-r-id
role: user-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-customer-000-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -233,8 +328,22 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shops-organization
- id: user-r-id
- id: restorecommerce-demo-customer-001-organization-user-r-id
role: user-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-customer-001-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -292,8 +401,22 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shops-organization
- id: user-r-id
- id: restorecommerce-demo-customer-000-organization-user-r-id
role: user-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-customer-000-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -351,8 +474,22 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shops-organization
- id: user-r-id
- id: restorecommerce-demo-customer-000-organization-user-r-id
role: user-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-customer-000-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down Expand Up @@ -402,8 +539,22 @@
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-shops-organization
- id: user-r-id
- id: restorecommerce-demo-customer-002-organization-user-r-id
role: user-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: restorecommerce-demo-customer-002-organization
- id: system-scope-r-id
role: scoped-r-id
attributes:
- id: urn:restorecommerce:acs:names:roleScopingEntity
value: urn:restorecommerce:acs:model:organization.Organization
attributes:
- id: urn:restorecommerce:acs:names:roleScopingInstance
value: system
localeId: de-de
timezoneId: europe-berlin
meta:
Expand Down
Loading

0 comments on commit eb01c8e

Please sign in to comment.