cancel
Showing results for 
Search instead for 
Did you mean: 

Using Integration Suite API's with Basic Auth

Robin_Walther
Explorer
0 Kudos

Hi Everyone.

I try to create packages using the Integration Suite API's.
This works when I use Client Credentials from the api-service-instance that I created in my Foundry BTP.

Now my problem:
The Package is createdBy the Client-ID:

Robin_Walther_0-1714144486218.png

Since this doesn't look good, I want it to display my user. As far as I know there is no possibility to do this with the API-service-instance. Therefore I need to authenticate using my user.

I found that there should be a way to do that:
https://help.sap.com/docs/cloud-integration/sap-cloud-integration/basic-authentication-of-idp-user-f...

Now when I try to call an API from Postman with Basic Authentication and my Universal-ID I get an error-message even though I gave myself full permission on all "!it"-roles:
"Error while obtaining token from UAA, with details: Request failed with status code 401"

I couldn't find anything online corresponding with this error-message.

What am I doing wrong?

Thanks for the help

Accepted Solutions (0)

Answers (2)

Answers (2)

Daniil_Bolobono
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Robin_Walther 

The way you've described it, it should work.

This error can occur when you provide a wrong password, so please double-check that. Also please note that due to caching mechanisms in SAP Cloud Integration, it can take up to 1 hour until role changes are considered.

Kind regards,
Daniil

Robin_Walther
Explorer
0 Kudos

Hi Daniil.

Thank you for your reply.
I made sure that the password is correct by logging in using my S-User and an icognito-session in my browser.

Unfortunately I can't call the API using the same user and password.

I will open a ticket.

Best regards

Robin

ag3silaus
Participant
0 Kudos

Hello @Robin_Walther ,

This is your Universal ID password and you should use your S-User ID password. Which is most probably different password. 

If you use your S-User with your password. It should be ok. 

Best Regards,

Burak