CAPI and Authentication

773 views
Skip to first unread message

Thorsten Pilpin

unread,
Jan 13, 2021, 4:10:49 AM1/13/21
to Fujitsu RunMyProcess Developer Community
Hi,

I want to trigger a RMP process from a third-party application (Mailchimp).

In Mailchimp I can specify a Webhook for certain events. For the Webhook I can specify a Callback URL.

Meanwhile I learned I can only use CAPIs to be triggered from a thir-party application. So I created a very simple one. For this CAPI definition I constructed the URL (something like"https://...../host123456/serivce/7890/..." in order to trigger it.

When I open this URL in a browser tab the CAPI is successfully triggered, but only when I have another tab opened where I did a RMP login before. As a result, if I open the URL in an incognito tab, the RMP login screen is opened. After I authenticate correctly, the CAPI is again executed.

As a result, it seems I have to pass some authentication with the URL. But how can I do this? I didnt find any specific page in the documentation guiding me for this use case.

What I have found is that there seems to be a parameter "&AuthToken=..." which I could pass. The key is to be the token of my BASE64-encoded credentials. I created this token, but still the call is rejected (authorization issue). This parameter is described in a section for "COAP"  (Constrained Application Protocol ), so my aussmption being able to use this parameter in this context might be wrong. 

While providing help, please bear in mind I am not a technical expert! 

RunMyProcess Support

unread,
Jan 18, 2021, 2:19:48 AM1/18/21
to Fujitsu RunMyProcess Developer Community, Thorsten Pilpin
Hi Thorsten,

RunMyProcess support basic authorization.

You need to send the parameter "'authorization: Basic <USERNAME:PASSWORD>" in the request header. Please note " USERNAME:PASSWORD " needs to be encoded in base 64.

Please refer to following link for reference:-

You can use some browser plugin to test the CAPI such as "Talent" etc. Kindly refer attached screenshot.

Kindly refer to "Mailchimp" official docs to configure the authorization parameter in request header. Please let us know if you any any query on this.

 Best Regards,
Pankaj Kumar
Fujitsu RunMyProcess Support

3.png

Thorsten Pilpin

unread,
Jan 18, 2021, 3:27:19 AM1/18/21
to Fujitsu RunMyProcess Developer Community, RunMyProcess Support
Hi Pankaj,

thanks for the answer. I followed the instructions on the site you referred to and added {username:password} to the URL as described in the last section (Appendix: Automatic basic authentication) on this page, but it didnt work. I still get the RMP Login screen.

This is the URL I am using (I substitued the parameters!):
Thorsten

Reply all
Reply to author
Forward
0 new messages