on 07-02-2021 1:26 PM
Hello,
We don't seem to get the db schema to generate if we use JWT auth locally.
If we use mocked / default auth the schemas are there just fine (see lines to remove from cdsrc.json below).
In both cases the cds files + mocked data and services are loaded successfully, and the server starts.
In case of JWT we get errors at runtime when trying to read / write data because the tables are missing.
Using the db in:memory or dumping to an sqlite file has the same outcome.
Any ideas?
cdsrc.json
{
"odata": {
"version": "v4"
},
"requires": {
"uaa": {
"kind": "xsuaa"
},
"messaging": {
"kind": "local-messaging"
}
},
"[development]": { // Removing this works fine
"auth": {
"passport": {
"strategy": "JWT"
}
}
}
}
{
"odata": {
"version": "v4"
},
"requires": {
"uaa": {
"kind": "xsuaa"
},
"messaging": {
"kind": "local-messaging"
},
"db": {
"[development]": {
"kind": "sqlite",
"model": "*"
}
},
"auth": {
"[development]": { // Had wrong nest level for [development]
"strategy": "mock", // Replace this with JWT
"users": {
"alice": false, // In case you have want mocked users but want to remove the default ones
"bob": false,
"*": false,
}
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.