Skip to content

Commit

Permalink
authenticate with IAS user
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwolf committed Jan 14, 2025
1 parent 10e95b2 commit accd2dc
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions test/call-srv.http
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
###
Expand Down Expand Up @@ -40,4 +42,20 @@ GET {{$dotenv server}}/api/sendmail
?destination=inbucket_direct
&from=[email protected]
&to=[email protected]
Authorization: Bearer {{access_token}}
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

0 comments on commit accd2dc

Please sign in to comment.