This commit is contained in:
Matthias Bühl
2020-01-30 17:48:32 +01:00
parent e0e330c43a
commit a458c7bb0d
5 changed files with 57 additions and 52 deletions

View File

@@ -8,35 +8,28 @@
"express": "*",
"passport": "^0.4.1"
},
"cds": {
"auth": {
"passport": {
"strategy": "mock",
"users": {
"alice": {
"password": "123",
"ID": "alice",
"roles": ["admin", "authenticated-user"],
"xs.user.attributes": { "currency": [ "USD" ] }
},
"bob": {
"password": "123",
"ID": "bob",
"roles": ["authenticated-user"]
}
}
}
}
},
"scripts": {
"start": "cds run --in-memory?",
"watch": "cds watch"
},
"auth": {
"passport": {
"strategy": "mock",
"users": {
"alice": {
"password": "123",
"ID": "alice",
"roles": [
"admin",
"authenticated-user"
],
"xs.user.attributes": {
"country": [
"US"
]
}
},
"bob": {
"password": "123",
"ID": "bob",
"roles": [
"authenticated-user"
]
}
}
}
}
}