Skip to content

Commit 10e95b2

Browse files
committed
needed config for basic auth and custom IAS
1 parent 923c547 commit 10e95b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/basic-auth.http

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
###
22
GET {{$dotenv approuter_url}}/sap_basic_auth/bc/ping
33
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}
4+
### dynamicIdentityProvider = true seems not to apply for routes with basic auth
5+
GET {{$dotenv approuter_url}}/sap_basic_auth_dyn_idp/bc/ping?sap_idp=sap.custom
6+
Authorization: Basic {{$dotenv username_ias}}:{{$dotenv password_ias}}
7+
### login_hint also does not work for routes with basic auth
8+
GET {{$dotenv approuter_url}}/sap_basic_auth/bc/ping?login_hint=%7B%22origin%22%3A%22sap.custom%22%7D
9+
Authorization: Basic {{$dotenv username_ias}}:{{$dotenv password_ias}}
10+
### Routes with basic auth only authenticate via the custom IDP when the security settings where changed
11+
### according to SAP Note: https://me.sap.com/notes/3042924
12+
### 3042924 - How to change the default identity provider for password grant flow on Cloud Foundry
13+
### Use the script:
14+
### https://github.com/gregorwolf/bookshop-demo/blob/main/tests/xsuaa-configure.http#L28
15+
###
16+
GET {{$dotenv approuter_url}}/sap_basic_auth/bc/ping
17+
Authorization: Basic {{$dotenv username_ias}}:{{$dotenv password_ias}}
418
###
519
GET {{$dotenv approuter_url}}/sap_basic_auth/opu/odata/SAP/EPM_REF_APPS_SHOP_SRV/
620
Authorization: Basic {{$dotenv username}}:{{$dotenv password}}

0 commit comments

Comments
 (0)