Skip to main content

I’m brand new to Zapier and looking into developer integrations for possible use in my company’s custom CMS software. My question is… is it even possible to develop an integration without a centrally hosted service? For example, all of our websites live on their own domain and have their own urls to login (basic email/password, sometimes 2FA), so there’s no mycompany.com/authenticate url or anything equivalent. It would all be website1.com/cms/login, website2.com/cms/login, etc.

The zap actions that I would be exposing would be the same across the board, but I’m not sure this type of setup would even work with Zapier without adding a layer on top just for authentication/communications. 

Maybe I’m thinking about this the wrong way. How does something like Wordpress do the same thing with websites (and their data) living on unique domains? Anybody have insight?

@KorySharp - Just wanted to fix something in the screenshot above. I forgot to convert basicAuth to base64. Here’s how to do it:

const basicAuth = Buffer.from(
`${bundle.inputData.username}:${bundle.inputData.password}`
).toString("base64");

 


@ikbelkirasan I was actually reading into that as your message popped up. Gonna go with that! Thanks again.


@KorySharp - So, I checked the Basic Authentication setup page and didn’t find a way to add extra input fields. In this case, you can use API Key authentication instead. However, you’ll have to construct the Basic Auth header yourself. You can use my example below as a reference. Good luck!

 


@ikbelkirasan Thanks for the response. So I’m currently looking at this screen in the basic auth setup. The API endpoint url it’s asking for appears to require an absolute url. Can I use custom authentication fields in that endpoint?

 


@KorySharp - How about adding the website URL as an authentication field? This way, you will be able to use it as a base URL for all the HTTP requests. For example: {{bundle.authData.apiURL}}/cms/login