-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(users): add known passwords to each user
- Loading branch information
Gerald Baulig
committed
Mar 20, 2024
1 parent
6e0b5b8
commit a297e5c
Showing
7 changed files
with
92 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,56 @@ npm run import:demoshop:objects -- --apiKey=<access_token> -- --NODE_ENV=local | |
npm run import:demoshop:objects -- --apiKey=<access_token> -- --NODE_ENV=production | ||
# or: | ||
npm run import:demoshop:objects -- --apiKey=<access_token> # default is development | ||
``` | ||
|
||
## Login | ||
|
||
For login as any existing user of this dataset, the credentials are as follows: | ||
|
||
**Root Admin** (all permission in domain) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**Shop Admin 000** (all permission in shop) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**Sales 000** (permission to maintain shop) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**Moderator 000** (permission to maintain customer organization 000) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**Moderator 001** (permission to maintain customer organization 001) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**Member 000** (permission to make orders for organization 000) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**Member 001** (permission to make orders for organization 001) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` | ||
|
||
**User 000** (permission to make orders as individual) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ | |
firstName: Root | ||
lastName: Admin | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-root-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-root-organization-administrator-r-id | ||
|
@@ -97,7 +96,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -122,7 +121,6 @@ | |
firstName: Shop000 | ||
lastName: Admin000 | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-shop-000-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-shop-000-organization-administrator-r-id | ||
|
@@ -154,7 +152,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -179,7 +177,6 @@ | |
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 | ||
|
@@ -211,7 +208,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -236,7 +233,6 @@ | |
firstName: Customer000 | ||
lastName: Moderator000 | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-customer-000-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-customer-000-organization-moderator-r-id | ||
|
@@ -284,7 +280,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -309,7 +305,6 @@ | |
firstName: Customer001 | ||
lastName: Moderator000 | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-customer-001-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-customer-001-organization-moderator-r-id | ||
|
@@ -357,7 +352,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -382,7 +377,6 @@ | |
firstName: Customer000 | ||
lastName: Member000 | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-customer-000-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-customer-000-organization-member-r-id | ||
|
@@ -430,7 +424,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -455,7 +449,6 @@ | |
firstName: Customer001 | ||
lastName: Member000 | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-customer-001-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-customer-001-organization-member-r-id | ||
|
@@ -503,7 +496,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
@@ -528,7 +521,6 @@ | |
firstName: Customer002 | ||
lastName: User000 | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: restorecommerce-demo-customers-organization | ||
roleAssociations: | ||
- id: restorecommerce-demo-shops-organization-customer-r-id | ||
|
@@ -568,7 +560,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ All data is imported via the GraphQL API exposed by the [facade-srv](https://git | |
|
||
All possible operations are exposed through JS scripts. | ||
These scripts either execute GraphQL mutations/ queries through the `dataset.js` script. | ||
The `import.js` also includes command-line options such as specifying if we wish | ||
The `dataset.js` also includes command-line options such as specifying if we wish | ||
to import the data locally or into the production environment. | ||
|
||
### Current supported jobs are | ||
|
@@ -68,3 +68,13 @@ npm run env:token | |
|
||
By default, the GraphQL importer uses the configuration file `config.json` to read data regarding endpoints for retrieving the API key | ||
and executing mutations/ queries. | ||
|
||
## Login | ||
|
||
For login as any existing user of this dataset, the credentials are as follows: | ||
|
||
**Tech User** (Superadmin) | ||
``` | ||
User: [email protected] | ||
Password: restorecommerce.io | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
firstName: Tech | ||
lastName: User | ||
email: [email protected] | ||
password: CNQJrH%KAayeDpf3h | ||
defaultScope: "" | ||
roleAssociations: | ||
- id: superadministrator-r-role-assoc-id | ||
|
@@ -28,7 +27,7 @@ | |
newEmail: "" | ||
active: true | ||
activationCode: "" | ||
passwordHash: "" | ||
passwordHash: $2a$10$mo3euNumYtu3kVe8HFV/bepdRhhDDUG4wPmstSF3XbHPMHJ9TOgua | ||
guest: false | ||
image: | ||
id: "" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters