Skip to Content
0
Jul 26, 2018 at 11:14 AM

Issue using the Authorization Management REST API In SAP Web IDE

714 Views Last edit May 24, 2020 at 11:32 AM 3 rev

Hi ,

ISSUE : able to access Authorization Management API using postman client but facing issue while consuming same API in Web ide UI5 app.

i generated bearer token using the http destination.

and trying to invoke the groups rest service and getting 401-unauthorized error.

/httpDestinationName/oauth2/apitoken/v1?grant_type=client_credentials

/httpDestinationName/v1/accounts/<account>/groups

The same scenario i tried with postman client and able to get the groups.

https://api.hanatrial.ondemand.com/oauth2/apitoken/v1?grant_type=client_credentials

https://api.hanatrial.ondemand.com/authorization/v1/accounts/ /groups

here i added client id and client secret (obtained from cockpit)in the authorization section as username & password.