Hello Experts,
I tried testing authorization management REST APIs through POSTMAN client as i have a requirement to get the roles assigned to a user in a webide code so that i can control the user access in a custom widget. I referred the documentation : https://help.hana.ondemand.com/help/frameset.htm?392af9d162694d6595499f1549978aa6.html and i want to test the API provided in documentation https://api.hana.ondemand.com/authorization/v1/documentation . As the API /accounts/{accountName}/users/roles which i want to access is oAuth2.0 protected , i created a client with trial/portal subscription in my hana trial cockpit account and was able to get the oauthtoken using https://oauthasservices-<myTrailaccount>.hanatrial.ondemand.com/oauth2/api/v1/token?grant_type=client_credentials POST service. I am still not able to figure out how can i test roles api . I beleive i will have to create an http destination of type OAuth2SAMLBearerAssertion to access this api in my webide application. Could you please tell me what should i put for url, audience and token service url parameters while creating destination ?
Just to add , i am able to test the service with POSTMAN client now but i need to access this using webide application where i am getting error with getting token.
To test in Postman , i used frst the url
and passed the client key and client id which i generated from oAuth section of HCP, Platform API's tab .
i got the token which i passed to
so i got the response with user and Roles . I have attached the screenshot of destination created, please guide me if i have missed any property in destination and how can i use it in a webide application.
Thanks ,
Rakesh