Technology Blog Posts by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Asim_Munshi
Product and Topic Expert
Product and Topic Expert
14,119
Recently setup a demonstration of consuming data with SAP DATASPHERE APIs with Postman. The blog scope is limited to facilitate postman setup.

Here are the steps to follow

  1. Within your Datasphere tenant setup an OAuth Client by navigating to System-->Administration-->App Integration



Leave the Redirect URL as blank. Copy your ClientID and Secret.

From the App-integration page - also grab the Auth URL and the TOKEN URL. You will need it in step 2.

2. Now Open Postman and setup a new collection. I am calling it SAP DATASPHERE SPM. It is best to setup the OAUTH2 authorization at the collection level and have the children POSTS/GETS inherit it.


Configure the New token as shown.

Choose GrantType: Authorization Code

Callback Url: http://localhost

Grab the Auth URL and the Token URLs from System-->Administration-->App Integration wherein you setup the OauthClient

 

 


 

Click on 'Get New Access Token'

At this point you should be prompted to login to SAP BTP.


Once you login to browser and continue you should get your Token.


 

Click on 'Use token'

Now you can setup your individual requests to get spaces or data with Authorization set to -- 'inherit from parent'

clicking on 'Send' should yield results.

10 Comments
deodutt_dwivedi
Active Participant
0 Kudos
Hi asim.munshi ,

Thanks for the detailed steps. We have SSO configured via Azure AD for our Datasphere tenant. In the final get request instead of getting the expected outcome, I am getting below information. Do you know if additional configuration is required for our scenario?


Regards,

Deo
jagadeesh247
Explorer
0 Kudos
Hi Asim Munshi,

Even I am also facing the same issue like Dwivedi, Please find the screenshot as below.

please suggest anything we need to do further ?


 

thanks.
jagadeesh247
Explorer
0 Kudos
I was able to fix the error, now I can access my spaces and other information.

Trail & error method -

First saved the parent file and after that closed and reopen my postman. later I tried by writing the same url under get .

elke_zeimetz
Explorer
0 Kudos
Hi Asim Munshi,

great blog!
We have SSO configured via SAP IAS (SAP Cloud Identity Access). Is it also possible to use this scenario and how does it work? Any step-by-step guides?

Best Regards,

Elke
Asim_Munshi
Product and Topic Expert
Product and Topic Expert
0 Kudos
hi Deodutt - I don't have an SSO configured tenant to check this out, but try with giving the DWC URL as the callback URL
SimonVee
Explorer
Hey,

We had similar problems with SSO. We solved most by adding a custom key to the header

key = x-sap-sac-custom-auth

value = true


Kind Regards,

 

Simon
deodutt_dwivedi
Active Participant
Hi asim.munshi / svandelanotte ,

Thanks for reverting. I was able to resolve the issue just by saving the config, closing and reopening Postman as mentioned by Kumar in his reply.

Regards,

Deo
Nhlakanipho1129
Newcomer
0 Kudos

Hi @Asim_Munshi 

We are trying to setup Postman in order to connect Datasphere to Google Cloud Looker to do a data preview. We are experiencing a problem with getting a token. On the stage where we connect to the BTP application, it gives the following error:

Error 1.pngError 2.png

 

For this type of connection, what would constitute the Redirect URL? please assist.

#Datasphere

 

ewfdsfsadd
Newcomer
0 Kudos

Hi @Asim_Munshi ,

I am getting the same error like @Nhlakanipho1129 .

Thanks for the support!

amonroy21
Discoverer
0 Kudos

@Nhlakanipho1129 @Asim_Munshi 

 

I solve this issue with the callback URI https://oauth.pstmn.io/v1/callback
Hope should help you

amonroy21_0-1732652284283.png