cancel
Showing results for 
Search instead for 
Did you mean: 

SAP S/4HANA On-Premise API Return 401 Unauthorized Error Related to SPNego

albertoliu1993
Product and Topic Expert
Product and Topic Expert
0 Kudos
445

Hi S/4HANA SSO Experts,

I have a cloud application running on the SAP BTP, and this application consuming the SAP S/4HANA On-Premises OData services via the Destination Service, which is pointing to the Cloud Connector running inside of the S/4HANA. We defined the Technical User, granted the OData services API access to this technical user, and doing the Basic Auth in the destination instance by using it's credential.

Previously everything working fine, but suddenly the API request start to return 401 unauthorized error, and the real error message are as below

<html><meta http-equiv=\"refresh\" content=\"0\"><body onload=\"JavaScript:document.location.reload(true);\"><H1>Your browser is not configured for using SPNego</H1>Press F5 (Page Refresh) to continue.</body></html>

I just know a little about this SPNego, and it is related to the configuration of SSO in the S/4HANA. My question is, how could the SSO affect OData Service (API) consumption, and how could I get rid of / fixing this error ?

Best Regards,

Weikun Liu

View Entire Topic
faizbsindgi
Newcomer
0 Kudos

Dear Alberto,

Facing similar issue from APIM . 

Please provide steps to fix