SAP Knowledge Base Article - Preview

2477738 - HTTP/HTTPS authentication fails with error message 401 Unauthorized - SMP 3.0


When a user tries to authenticate itself through the SMP via HTTP/HTTPS Authentication Provider it receives 401 (Unauthorized) in spite of it sends the correct credentials.

In the server logs it's visible that the SMP server receives in the response the HTTP 200 OK message but then it falls back to 401.

HTTP/1.1 307 Temporary Redirect
set-cookie: CookieWithTheSessionID; path=/
content-length: 0
location: http://HostName:Port/sap/opu/odata/ServiceName/ 
Caching 'basic' auth scheme for http://HostName:Port
"[read] I/O error: Read timed out"

"GET /sap/opu/odata/ServiceName/ HTTP/1.1[\r][\n]"

"Host: HostName:Port[\r][\n]"
"Connection: Keep-Alive[\r][\n]"
"User-Agent: Apache-HttpClient/4.3.6 (java 1.5)[\r][\n]"
"Cookie: CookieWithTheSessionID; sap-usercontext=sap-client=ClientID[\r][\n]"
"Accept-Encoding: gzip,deflate[\r][\n]"
"Authorization: Basic ...[\r][\n]"

"HTTP/1.1 200 OK[\r][\n]"

Server responded with the status code "200"
Authentication Failed for: 'BackendID'
No AuthenticationEntryPoint was set during login attempt. Falling back to HTTP 401 + WWW-Authenticate
Session: SessionID
Status Code: 401
WWW-Authenticate: Basic realm="..."
RegistrationRemovalTimeout is 0 for applicationid : AppID version : 1.0



  • SAP Mobile Platform (SMP) 3.0 OData Runtime
  • HTTP/HTTPS Authentication Provider


SAP Mobile Platform 3.0


smp, http, 401, https, gateway, gw, 200, 307, temporary redirect, "[read] I/O error: Read timed out", unauthorized, authentication fails , KBA , MOB-ONP-SEC , SAP Mobile On Premise Security , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.