on 05-10-2020 12:18 PM
Hi Experts,
I would like to get the data from a rest API (SAP Cloud platform) to the UI5 application.
How to call API using oAuth2.0 details like client ID and Secret. I am able to get the data in the postman.
Also how UI5 code will generate new access token every time.
Your response will be appreciated.
Regards,
Vamshi Krishna.
Is the API another service on SAP Cloud Platform? If so, I recommend to use the Approuter as a backend proxy. The advantage of this is that the Approuter knows how to implement the OAuth flow and you only need to configure the destination.
If it's another OData service or you cannot use the Approuter for other reasons: Any backend proxy would do.
In either case: Please don't implement the OAuth flow in the UI! It's not secure to handle client ID and secret in the UI layer as this information will be public
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marius,
Thanks for your response.
We would like to get the all the portal service roles from cloud.
Below is the API.
How to use Approuter as a backend proxy in my case?
Regards,
Vamshi krishna.
User | Count |
---|---|
88 | |
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.