2 weeks ago
Dear Experts,
Up until this past weekend, everything was going well with my SAP Cloud connection login and admin access. However, for the past two days, I've been receiving 401 authorization errors when attempting to contact the CPI services using POSTMAN and SOAP UI.
Kindly help me to understand what am i missing here (password rest also done but still same issue).
Regards,
Hi Abdulhammed,
Authorisation error 401 in some cases is due to a password mismatch.
Using Basic Authentication
I advise you to go BTP account and use credentials in your servicekey of your instance.
(if you have not created a service key to your instance, please create one from the BTP).
Assuming you have created
Use the json file {
"oauth": {
"createdate": "2024-04-17T16:17:36.132Z",
"clientid": "sb-d99b13-b0cd-46-b7b0-7f37ed0!b273608|it-rt-f85fd302trial!525",
"clientsecret": "ca9fba-f234-4f94-8be6d856e0b$xuaSSKKrOc41FYM5V_idouu-lUK_wRALujA3TB6KVI=",
"tokenurl": "https://trial.authentication.us10.hana.ondemand.com/oauth/token"
}
}
client ID = Username to use in Postman/ Soap in Basic Authentification
clientsecret = Password
Please note that these variable are very sensitive.
Copy only what is between " " excluding " "
I hope this helps.
Abdul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you put your http connection properties?
if you want to access to your cpi api from outside you must remove CRSF flag on connection, if you have an OAuth 2.0 keys created in your BTP is better method and more secure. Basic Authentication is not good.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
probably you have configured your HTTP-Adapter with CSRF protection. If so, you first need a token before you are allowed to send payload to your Endpoint on CI. Also as I can see in your screenshots - you are using Basic Auth. That is not recommended. Use OAUTH oder Client Certificates instead.
Hint: Follow the Guided Answer to get more information:
Best regards
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.