cancel
Showing results for 
Search instead for 
Did you mean: 

Use destination for authentication in personal edition webide

iker_espinosa
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

DK007
Active Participant
0 Kudos

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
}
DK007
Active Participant
0 Kudos

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.

iker_espinosa
Participant
0 Kudos

Hi,

that's what we have already configured.

What I want to know is how to configure the app to use that destination. Do I have to use a neo-app file, or congif it in manifest.json? Where do we have to config the destination and use it?

Thanks.