Jünge alles
Jünge alles

Reputation: 489

SAPUI5 app with OData authentication + restriction by authorizations

I have some problems to understand the Login with a SAPUI5 App connected with the OData to a SAP-Server.

First of all, the idea is like a time recognition where i login with the user id or username and password. than i check if it is in the SAP backend system and if it is. i want to show only the records for the staff number.

I am doing it with filters? or there are some other ways?

It should be a basic authentication, when I open the app there is a popup where I need to enter my sap-system username and password, but how I can make this as a login page and how can I get the parameters (every username has a staff number)?

Upvotes: 0

Views: 3894

Answers (1)

dotchuZ
dotchuZ

Reputation: 2651

first of all I think you need to understand some basic concepts/architecture settings.

There are two possibilities deploying SAPUI5 apps:

  • hosted on your SAP NW GW onPremise (no matter if central hub or not)

  • hosted on SAP Cloud Plattform

Case A: deploying on SAP NW GW onPremise

Case B: hosting a SAPUI5 App on SAP Cloud Platform

  • in this case your need to understand the architecture to determine what you want
  • If your SAP Cloud Platform hosts the SAPUI5 application your can read data from an SAP Backend using SAP Cloud Platform Destination Services (which means a destination, using the SAP Cloud Connector to connect to your SAP System)

In your case: First of all, the idea is like a time recognition where i login with the user id or username and password.. than i check if it is in the sapbackend system and if it is.. i want to show ONLY the records for the staffnumber.. --> I would recommend the following: If the app is hosted on SAP CP you need an S-User to access it or a respective single sign on mechanism to replace s-user. You will not be able to replace the login from Cloud Platform with anything individual not breaking security terms. Then you need a SAP NW GW OData Service in your SAP Backend. You further need SAP Cloud Connector paired with your SAP System and with your SAP CP instance. Having both things in place requires creating a destination pointing to your OData Service. If you got these things in place you could easily select the destination when creating an SAPUI5 Application via templates.

Help Links:

Have fun

Upvotes: 1

Related Questions