2025 Feb 20 1:40 PM - edited 2025 Feb 20 1:51 PM
Service definition
service AccountService {
entity TestEntity {
key ID : UUID;
Name : String;
}
action callExternalAPI() returns String;
}<div><div><span>CDS configuration for hybrid testing in package.json project file:<li-code lang="json">{
...
"cds": {
"requires": {
"auth": "xsuaa",
"destinations": true,
"[hybrid]": {
"auth": "xsuaa"
}
}
}
}<div><div><span>xs-secutiry.json project file:<li-code lang="json">{
"xsappname": "testvscode1",
"tenant-mode": "dedicated",
"scopes": [],
"attributes": [],
"role-templates": [],
"authorities-inheritance": true,
"oauth2-configuration": {
"redirect-uris": [
"http://localhost:5001/"
]
}
}<p> <span>default-env.json approuter file:<li-code lang="json">{
"PORT": 5001,
"destinations": [
{
"name": "srv-api",
"url": "http://localhost:4004",
"forwardAuthToken": true
}
]
}
{
"authenticationMethod": "none",
"routes": [
{
"source": "^/app/(.*)$",
"target": "$1",
"localDir": ".",
"cacheControl": "no-cache, no-store, must-revalidate"
},
{
"source": "^/appconfig/",
"localDir": ".",
"cacheControl": "no-cache, no-store, must-revalidate"
},
{
"source": "^/odata/v4/account/(.*)$",
"target": "/odata/v4/account/$1",
"destination": "srv-api",
"csrfProtection": false
},
{
"source": "^/(.*)$",
"target": "$1",
"destination": "srv-api",
"csrfProtection": false
}
]
}
Thanks for your time and help.
Regards!
Mig
Request clarification before answering.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.