Skip to content

Commit accd2dc

Browse files
committed
authenticate with IAS user
1 parent 10e95b2 commit accd2dc

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

test/call-srv.http

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ Authorization: Basic {{$dotenv btp_clientid}}:{{$dotenv btp_clientsecret}}
66
Content-Type: application/x-www-form-urlencoded
77

88
grant_type=password
9-
&username={{$dotenv username}}
10-
&password={{$dotenv password}}
9+
#&username={{$dotenv username}}
10+
#&password={{$dotenv password}}
11+
&username={{$dotenv username_ias}}
12+
&password={{$dotenv password_ias}}
1113
&client_id={{$dotenv btp_clientid}}
1214
&response_type=token
13-
#&login_hint={"origin":"sap.custom"}
15+
&login_hint={"origin":"sap.custom"}
1416
### Fill Variables from Response
1517
@access_token = {{requestAccessToken.response.body.$.access_token}}
1618
###
@@ -40,4 +42,20 @@ GET {{$dotenv server}}/api/sendmail
4042
?destination=inbucket_direct
4143
4244
43-
Authorization: Bearer {{access_token}}
45+
Authorization: Bearer {{access_token}}
46+
###
47+
GET {{$dotenv approuter_url}}/sap/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/
48+
Authorization: Bearer {{access_token}}
49+
Accept: application/json
50+
###
51+
GET {{$dotenv approuter_url}}/sap/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/MainCategories
52+
Authorization: Bearer {{access_token}}
53+
Accept: application/json
54+
###
55+
GET {{$dotenv approuter_url}}/sap/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/Products
56+
?$top=10
57+
&$inlinecount=allpages
58+
&$filter=MainCategoryId eq 'Meeting %26 Presenting'
59+
&$orderby=StockQuantity desc
60+
Authorization: Bearer {{access_token}}
61+
Accept: application/json

0 commit comments

Comments
 (0)