How to use oAuth authentication in JSONModel.loadData()

404 Views Asked by At

I am using oAuth authentication for the first time and finding some challenges in implementing a working code.

I tried using ajax calls but failed.

The idea is - my java service is enabled with oAuth2.0 and I have my callback URL, my Auth URL, my token URL and also the client id and client secret, but how do I put it all together to get a workable code?

Any samples would help -

Either AJAX call (jQuery) to put in my UI5 application or even better with JSONModel.loadData().

0

There are 0 best solutions below