Skip to content

Commit

Permalink
expose backend with authenticationType basic
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwolf committed Dec 5, 2024
1 parent 5ba0d57 commit 2c7f8f8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions approuter/xs-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
"target": "/sap/$1",
"destination": "SAP_ABAP_BACKEND"
},
{
"source": "^/sap_basic_auth/(.*)$",
"target": "/sap/$1",
"authenticationType": "basic",
"destination": "SAP_ABAP_BACKEND"
},
{
"source": "^/sap_basic/(.*)$",
"target": "/sap/$1",
Expand Down
19 changes: 19 additions & 0 deletions test/basic-auth.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
###
GET {{$dotenv approuter_url}}/sap_basic_auth/bc/ping
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
###
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
Accept: application/json
###
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/MainCategories
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
Accept: application/json
###
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/Products
?$top=10
&$inlinecount=allpages
&$filter=MainCategoryId eq 'Meeting %26 Presenting'
&$orderby=StockQuantity desc
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
Accept: application/json

0 comments on commit 2c7f8f8

Please sign in to comment.