on 04-18-2019 7:48 PM
Hi everyone,
I am facing a weird authorization issue while using On-premise data service and Cloud data service simultaneously.
I am using destination and connectivity service to get On-premise data and It successfully retrieved. Then I tried accessing cloud data, It gives 401 all though my destination is defined. If i remove the onPrem data service again and keep only cloud data service it would work fine. Can anyone please help?
xs-app.json
---------------------------------------
{
"welcomeFile": "/ui/index.html",
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/do/logout"
},
"routes": [{
"source": "^/hanaxs2/(.*)$",
"target": "$1",
"authenticationType": "none",
"destination": "hanaxs2",
"csrfProtection": false
}, {
"source": "^/Northwind/(.*)$",
"target": "$1",
"authenticationType": "none",
"destination": "NORTHWIND",
"csrfProtection": false
}, {
"source": "^/SCS-S4U/(.*)$",
"target": "$1",
"authenticationType": "none",
"destination": "SCS-S4U",
"csrfProtection": false
}, {
"source": "^/ui/(.*)$",
"target": "$1",
"localDir": "webapp"
}]
}
mta.yaml
------------------------------------------------
ID: cf_practice
_schema-version: '2.1'
version: 0.0.1
modules:
- name: ui
type: html5
path: ui
parameters:
disk-quota: 1024M
memory: 1024M
build-parameters:
builder: grunt
requires:
- name: uaa_cf_practice
- name: NORTHWIND
group: destinations
properties:
forwardAuthToken: true
strictSSL: false
name: NORTHWIND
url: '~{url}'
- name: hanaxs2
properties:
url: '~{url}'
resources:
- name: uaa_cf_practice
parameters:
path: ./xs-security.json
service-plan: application
type: com.sap.xs.uaa
- name: NORTHWIND
properties:
url: 'https://services.odata.org/'
- name: hanaxs2
properties:
url: 'https://jj7a7xx995ebb.hana.ondemand.com/'
- name: connectivity-odata
properties:
url: 'https://connectivity-S00xxx24815.cfapps.eu10.hana.ondemand.com'
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.