Hello all...
I just tested trusted authentication with already mentioned version, and as a result I receive the error message:
{ "error_code": "FWM 02045", "message": "There was an error reading the shared secret from trusted principal configuration file. (FWM 02045)" }
For my tests I use the Chrome Plugin "Advanced Rest Client" and a piece of Java code.
Both tests ran with the settings:
GET-Request URL: http://servername:6405/biprws/logon/trusted Header: Accept: application/json X-SAP-TRUSTED-USER: validUsername
And both return a "401 Unauthorized"
My Java code looks like that:
@Test public void testTrusted() { URL requestUrl = new URL("http://servername:6405/biprws/logon/trusted"); HttpURLConnection connection = null; try { connection = (HttpURLConnection) requestUrl.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Accept", "application/json"); connection.setRequestProperty("X-SAP-TRUSTED-USER", "validUser"); InputStream responseStream = null; responseStream = (InputStream) connection.getContent(); ... } catch (Exception e) { LOG.error(e.getMessage(), e); } }
I attached screenshots from the settings for Enterprise Authentication and WebApplicationContainerServer if someone wants to check my settings.
Any hints or even a confirmation appreciated.
Jan