Skip to Content

Use destination for authentication in personal edition webide

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 06, 2019 at 08:45 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 07, 2019 at 12:48 PM

    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
    }
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.