From accd2dc631508c376f8f682aede839c1d92feebe Mon Sep 17 00:00:00 2001 From: Gregor Wolf Date: Tue, 14 Jan 2025 17:36:42 +0100 Subject: [PATCH] authenticate with IAS user --- test/call-srv.http | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/test/call-srv.http b/test/call-srv.http index 3dc1950..f2dfbaa 100644 --- a/test/call-srv.http +++ b/test/call-srv.http @@ -6,11 +6,13 @@ Authorization: Basic {{$dotenv btp_clientid}}:{{$dotenv btp_clientsecret}} Content-Type: application/x-www-form-urlencoded grant_type=password -&username={{$dotenv username}} -&password={{$dotenv password}} +#&username={{$dotenv username}} +#&password={{$dotenv password}} +&username={{$dotenv username_ias}} +&password={{$dotenv password_ias}} &client_id={{$dotenv btp_clientid}} &response_type=token -#&login_hint={"origin":"sap.custom"} +&login_hint={"origin":"sap.custom"} ### Fill Variables from Response @access_token = {{requestAccessToken.response.body.$.access_token}} ### @@ -40,4 +42,20 @@ GET {{$dotenv server}}/api/sendmail ?destination=inbucket_direct &from=absender@dummy.com &to=empfaenger@dummy.com -Authorization: Bearer {{access_token}} \ No newline at end of file +Authorization: Bearer {{access_token}} +### +GET {{$dotenv approuter_url}}/sap/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/ +Authorization: Bearer {{access_token}} +Accept: application/json +### +GET {{$dotenv approuter_url}}/sap/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/MainCategories +Authorization: Bearer {{access_token}} +Accept: application/json +### +GET {{$dotenv approuter_url}}/sap/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/Products + ?$top=10 + &$inlinecount=allpages + &$filter=MainCategoryId eq 'Meeting %26 Presenting' + &$orderby=StockQuantity desc +Authorization: Bearer {{access_token}} +Accept: application/json