on 09-18-2020 8:12 AM
Hi iwona.jirschitzka,
on the CAP Documentation Page Authentication - Mocked Authentication - Default Configuration this standard configuration is shown:
cds.requires.auth = {
strategy: "mock",
users: {
"alice": { "roles": ["admin"] },
"bob": { "roles": ["builder"] },
"*": true //> all other logins are allowed as well
}
}
In the next section "Configuring Specific Users" shows this example:
"cds": { // in case of package.json
"requires": {
"strategy": "mock",
"auth": {
"users": {
"<user.id>": {
"password": "<password>",
"roles": ["<role-name>", ...],
"userAttributes": { ... }
},
}
}
}
}
I think it must be corrected to:
"cds": { // in case of package.json
"requires": {
"auth": {
"strategy": "mock",
"users": {
"<user.id>": {
"password": "<password>",
"roles": ["<role-name>", ...],
"userAttributes": { ... }
},
}
}
}
}
Best regards
Gregor
Hi gregorw
We republished the documentation with your suggested changes.
Best regards,
Iwona
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.