Skip to content

Commit 2f2a34c

Browse files
committed
same path different destinations using scope
1 parent 292d031 commit 2f2a34c

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

HTML5Module/xs-app.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
"target": "/sap/$1",
3636
"destination": "SAP_ABAP_BACKEND"
3737
},
38+
{
39+
"source": "^/sap_client/(.*)$",
40+
"target": "/sap/$1",
41+
"destination": "SAP_ABAP_BACKEND_000",
42+
"scope": "$XSAPPNAME.Client000"
43+
},
44+
{
45+
"source": "^/sap_client/(.*)$",
46+
"target": "/sap/$1",
47+
"destination": "SAP_ABAP_BACKEND",
48+
"scope": "$XSAPPNAME.Client001"
49+
},
3850
{
3951
"source": "^/sap_basic/(.*)$",
4052
"target": "/sap/$1",
@@ -91,4 +103,4 @@
91103
"authenticationType": "xsuaa"
92104
}
93105
]
94-
}
106+
}

approuter/xs-app.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@
5151
"target": "/sap/$1",
5252
"destination": "SAP_ABAP_BACKEND"
5353
},
54+
{
55+
"source": "^/sap_client/(.*)$",
56+
"target": "/sap/$1",
57+
"destination": "SAP_ABAP_BACKEND_000",
58+
"scope": "$XSAPPNAME.Client000"
59+
},
60+
{
61+
"source": "^/sap_client/(.*)$",
62+
"target": "/sap/$1",
63+
"destination": "SAP_ABAP_BACKEND",
64+
"scope": "$XSAPPNAME.Client001"
65+
},
5466
{
5567
"source": "^/sap_basic_auth_dyn_idp/(.*)$",
5668
"target": "/sap/$1",

xs-security.json

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
{
1111
"name": "$XSAPPNAME.Display",
1212
"description": "display"
13+
},
14+
{
15+
"name": "$XSAPPNAME.Client000",
16+
"description": "Client000"
17+
},
18+
{
19+
"name": "$XSAPPNAME.Client001",
20+
"description": "Client001"
1321
}
1422
],
1523
"attributes": [
@@ -60,6 +68,36 @@
6068
"city",
6169
"groups"
6270
]
71+
},
72+
{
73+
"name": "Client000",
74+
"description": "Client000",
75+
"scope-references": [
76+
"$XSAPPNAME.Client000"
77+
]
78+
},
79+
{
80+
"name": "Client001",
81+
"description": "Client001",
82+
"scope-references": [
83+
"$XSAPPNAME.Client001"
84+
]
85+
}
86+
],
87+
"role-collections": [
88+
{
89+
"name": "Client000",
90+
"description": "Client000",
91+
"role-template-references": [
92+
"$XSAPPNAME.Client000"
93+
]
94+
},
95+
{
96+
"name": "Client001",
97+
"description": "Client001",
98+
"role-template-references": [
99+
"$XSAPPNAME.Client001"
100+
]
63101
}
64102
],
65103
"oauth2-configuration": {
@@ -70,4 +108,4 @@
70108
"https://*.cloud.sap/**"
71109
]
72110
}
73-
}
111+
}

0 commit comments

Comments
 (0)