on 11-06-2019 3:52 PM
Hi,
we are using local webide / personal edition webide.
We have created new destinations and they work ok. We are able to deploy to ABAP repository for example, or look for developments in R/3.
But we would like to know if it is possible to develop SAPUI5 application and call ODATA services without using user+pass in the omodel.read call.
We would like to use the created destination as it is possible in the Cloud. And every call to /sap/opu/odata uses the destination, configured with basic authentication and the user+pass.
Thanks.
Yes, neo-app.json file is where you configuration the destination to be used by the application.
Here is the sample neo-app.json file:
{
"welcomeFile": "/webapp/index.html",
"routes": [
{
"path": "/sap/opu/odata",
"target": {
"type": "destination",
"name": "<DESTINATION>",
"entryPath": "/sap/opu/odata"
},
"description": "XYZ System"
},
{
"path": "/sap/bc/ui5_ui5",
"target": {
"type": "destination",
"name": "<DESTINATION>",
"entryPath": "/sap/bc/ui5_ui5"
},
"description": "XYZ System"
},
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
}
],
"sendWelcomeFileRedirect": true
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can do that. In your destination file add below properties
Authentication=BasicAuthentication
User=<USER_NAME>
Password=<PASSWORD>
Change USER_NAME and PASSWORD appropriately.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.