Authentication in Integration Hub covers how a flow proves its identity to an external system when it calls out, and how an external system proves its identity when it calls in. Get both right and the same integration runs unchanged across development, test and production. Get them wrong and a common symptom is a flow that worked on the source instance and fails with an authorization error once it has been moved.
Connection records and credential aliases work together
A connection record holds the endpoint and the authentication details for one external system. A credential alias is a named pointer that a flow step refers to instead of the record itself. The step asks for the alias, and each instance decides which real connection and credential sit behind that name. That indirection is the reason promotion can work at all: the flow stays the same, and only the instance-level mapping changes.
The practical consequence is that alias names are part of your design. Pick a pattern that says what the alias is for, not which environment it belongs to. An alias called billing_api_read survives a move between instances. One called billing_api_prod_key names an environment, which stops being accurate after a move. For the wider picture of how these pieces fit, start with the Integration Hub guides.
One provider can carry several connections behind one flow
An integration provider often needs more than one connection, for example separate environments of the same application. Integration Hub handles this with child aliases, so one application integration can hold several connections and each flow or action picks the one it needs.
Set the connection at flow level from the flow’s main page, through More Actions and Configure connections. The window lists each alias the flow uses with its configured connections, default first. A new selection overrides the preconfigured connection for that flow, so a promoted copy can point at its own account without editing the steps. Some instances hide that option, which an administrator controls with the sn_flow_designer.connections_override_enabled system property. The structure behind this is covered in the connection and credential alias explainer.
Choosing an authentication type for outbound steps
Outbound steps can authenticate in several ways. The options that appear depend on the spoke or action you use, and on your release and installed plugins, so read the connection form on your own instance rather than trusting a list from a guide, including this one.
Pick the simplest method the target supports for a service account, and avoid personal user credentials. Where the connection supports OAuth 2.0 token refresh, the token lifecycle is less manual than with a static key, which removes one manual step. Where the target offers only a static key, store it in the credential record and avoid pasting it into a script or a flow variable. The common integration patterns you choose will also shape which method fits, because a synchronous call and a batch job tend to need different handling of failed authentication.
Authenticating inbound webhooks and callbacks
Inbound traffic runs the other way. An external system calls an endpoint on your instance, so the question is how the instance checks who is calling. One approach on this platform is an API key or HMAC token that the sender includes in a header or a query parameter. Check which method your inbound endpoint supports on your release, since the API key and HMAC option needs its own plugin installed.
Callbacks deserve their own review. When a flow waits for a response and the external system calls back, the callback needs the same care as any other inbound request. An internal-looking URL is not private just because only your team knows it. Anyone who can reach the endpoint can send requests to it, so the check has to live in the request handling itself, not in the secrecy of the path.
Where MID Server connections fit
When the target sits on a private network, a MID Server usually makes the outbound call on the instance’s behalf. The MID Server needs network reach to the target, so that path is worth checking on its own. Test that path separately from the flow. A network failure on the MID Server side can look like an authentication error, even when the credentials are correct.
Moving an integration between environments without reconfiguring it
Promotion is a common point where authentication breaks. The flow, script and alias are copied across correctly, but the connection and credential values on the target instance are empty, point at the wrong system, or still hold development keys. The result is a flow that deploys cleanly and then fails the first time it runs. A sequence that catches this before go-live looks like this:
- List every alias the flow references, and confirm the name is identical on the target.
- Create or confirm the matching alias on the target, with its own connection and credential.
- Check that each credential belongs to a service account that exists on the target and has only the access the integration needs.
- Run one low-impact call and read the response body, not only the absence of an error.
Keep a short record of which alias maps to which external system in each environment. It looks like admin work, but it is the document that saves real time the next time someone asks why a test instance is calling production. The broader Integration Hub best practices cover the wider release habits that this step fits into.
Rotating credentials without breaking running flows
Rotation is low-risk when the flow does not handle the secret directly. Update the credential record, run one test call, and then confirm the flows that depend on it. Rotate on whatever schedule the target requires. Where the target allows two valid keys at once, keep the old one active until the new one is confirmed. Where it does not, plan a short window and tell the owner of the integration before you start. The same scoping logic applies to scoping credentials for Discovery, which is a separate area with its own access questions.
Testing an alias before a flow depends on it
An alias can be checked with a small test action before any production flow depends on it. The alias must already be linked to a configuration template, and the test makes one GET call through it. A successful call usually shows that the credential and network path both work.
Start by creating a new action in Workflow Studio and adding one REST step. Set Connection to Use Connection Alias, choose the alias, leave Build Request on Manually and set HTTP Method to GET. Name the action something you will recognize, because you need that name in the next step. If the step fails, stop the action and go to error evaluation. Then open All > Integration Hub > Configuration Templates, select the template linked to the alias and enter the action’s name in the Test Action field. Point the GET at a read-only endpoint, since a GET should not change data on the external system. Once the template is saved, the test can be run from the Action Properties section of an action in a flow that uses the alias. Creating these records requires the admin role and the Integration Hub Starter plugin.
Questions people ask about Integration Hub authentication
What is a credential alias in Integration Hub?
A credential alias is a named reference that a flow step uses in place of a hard-coded connection or secret. Each instance maps the alias to its own connection and credential, so the same flow can run in development, test and production without edits.
Why does an integration fail with an authorization error after it is cloned?
One reason is that the alias on the target instance had not been created, or still points at a credential whose service account has no access. Check the alias mapping and the account’s permissions before you look at the flow logic. Deciding who owns those errors once the flow is live is a separate question, covered in how integration errors get an owner after go-live.
Should an integration use a personal user account to authenticate?
No. Use a dedicated service account with only the permissions the integration needs. A personal account can stop working when someone changes roles or leaves, and it makes audit logs harder to read later.
Do I need a MID Server for every outbound connection?
No. A MID Server is needed when the target sits on a network the cloud instance cannot reach directly. For public endpoints a direct connection needs no MID Server. Confirm which path your target requires before you build the flow around one.