on ‎2024 Aug 07 10:22 PM
I have a CAP application uploaded to my CloudFoundry space with authentication using oauth2. Logging in through the application routing works fine. Now I want to create a Fiori application and in the DataSource configuration section I select the "Connect to an OData Service" option. I add the "OData service URL" and it asks me for two pieces of information that I didn't know: Service username and Service password. According to what I was investigating, within Sap BTP Cockpit there is the connectivity section.
I configured the following:
When I click on Check connection:
Could someone explain to me what I am doing wrong to receive that I am not authorized?
How do I get it to recognize my user? In my xs-security.json I have the following:
{
"xsappname": "auditoria",
"tenant-mode": "dedicated",
"scopes": [
{
"name": "$XSAPPNAME.Auditor",
"description": "Auditor"
}
],
"attributes": [],
"role-templates": [
{
"name": "Auditor",
"description": "generated",
"scope-references": [
"$XSAPPNAME.Auditor"
],
"attribute-references": []
}
],
"oauth2-configuration": {
"credential-types": [
"binding-secret",
"x509"
],
"redirect-uris": [
"https://*.applicationstudio.cloud.sap/**",
"https://*.hana.ondemand.com/**"
]
}
}xs-app.json:
{
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/app-logout",
"logoutPage": "/"
},
"routes": [
{
"source": "^/app/(.*)$",
"target": "$1",
"localDir": ".",
"cacheControl": "no-cache, no-store, must-revalidate",
"authenticationType": "xsuaa"
},
{
"source": "^/appconfig/",
"localDir": ".",
"cacheControl": "no-cache, no-store, must-revalidate"
},
{
"source": "^/user-api(.*)",
"target": "$1",
"service": "sap-approuter-userapi"
},
{
"source": "^/(.*)$",
"target": "$1",
"destination": "srv-api",
"csrfProtection": true,
"authenticationType": "xsuaa"
}
]
}
I appreciate the help, thanks
Request clarification before answering.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.