Skip to content

Commit 2c7f8f8

Browse files
committed
expose backend with authenticationType basic
1 parent 5ba0d57 commit 2c7f8f8

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

approuter/xs-app.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
"target": "/sap/$1",
5252
"destination": "SAP_ABAP_BACKEND"
5353
},
54+
{
55+
"source": "^/sap_basic_auth/(.*)$",
56+
"target": "/sap/$1",
57+
"authenticationType": "basic",
58+
"destination": "SAP_ABAP_BACKEND"
59+
},
5460
{
5561
"source": "^/sap_basic/(.*)$",
5662
"target": "/sap/$1",

test/basic-auth.http

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
###
2+
GET {{$dotenv approuter_url}}/sap_basic_auth/bc/ping
3+
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
4+
###
5+
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/
6+
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
7+
Accept: application/json
8+
###
9+
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/MainCategories
10+
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
11+
Accept: application/json
12+
###
13+
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/Products
14+
?$top=10
15+
&$inlinecount=allpages
16+
&$filter=MainCategoryId eq 'Meeting %26 Presenting'
17+
&$orderby=StockQuantity desc
18+
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
19+
Accept: application/json

0 commit comments

Comments
 (0)