Is there anybody out there who might have a clue how to create a apex rest data source to Docuware DMS?
i tried various approaches for authetication, none of them lead to a positive result.
I cannot successfully request a auth token.
Testing the REST API with Postman works like charm.
After deeply inspecting logs of APEX and Docuware i might have found the root cause:
Docuware expects "username" and "password" attributes in the request
This is the error message logged in docuware:
2024-10-09 15:25:45.4300||INFO|Duende.IdentityServer.Events.DefaultEventService|{"ClientId":"myusername", "Category":"Authentication", "Name":"Client Authentication Failure", "EventType":"Failure", "Id":1011, "Message":"Unknown client", "ActivityId":"800003c4-0006-f100-b63f-84710c7967bb", "TimeStamp":"2024-10-09T13:25:45.4300143Z", "ProcessId":6716, "LocalIpAddress":"10.10.10.112:80", "RemoteIpAddress":"10.10.10.78"} |url: http://dms.schmoll.org/DocuWare/Identity/connect/token|action:
apex_web_service.oauth_authenticate only provides "ClientID" and "ClientSecret" for transferring the credentials when sending the Request.
I did not find any clue how to send the expected data. Any idea how i can overcome that problem?
Maybe i can request the token using APEX_WEB_SERVICE.MAKE_REST_REQUEST calls. But i dont't know how to integrate this call into the REST Datasource definition so i can leverage the Datasource Definition to use is as a valid Datasources for example in an IG