Stripe API connector - API secret as shared header?

Hi,

I have an API Connector with stripe on my platform.

Everything is working fine, but the Authentication is HTTP Basic Auth which requires me to put my secret key in the Username, which is only a problem because i have to keeping switching it back and forth between dev and Live.

Is there a way for me to set it up so that i don’t have to keep switching it?

Can the Username be set up as a Shared Header, whereby i pass the appropriate key according to dev or Live?

is there a better/easier way of doing this?

thanks in advance,

Jeff

Hey @Jeff66

You can make this happen by setting up your own private plugin (which is slightly more complicated that using the api connector.) In doing so, you can have dev and live usernames for your http basic auth with stripe.

I don’t believe this can be done securely with just the api connector, but if my earlier response on another thread is any indication, I could be completely wrong and hopefully somebody will quickly correct! :wink:

Can do it in the API connector as well, if you leave the Dev key empty, Dev will use the Live key. Here’s a bad example …

But the OP needs http basic auth, does this work for that? Wouldn’t you have to also do the base64 encoding?