Sign-In for Outside Services
Some outside services do not take a plain key. They want a key file that is traded for a short lived access token, or a person to sign in once and approve. A custom connection can use either one, for any service. The examples here use a made-up service at example.com; a real one works the same way with its own addresses.
This page is confidential: only owners and admins see connections, and AI agents never do.
The Two Styles
- Service Account Key. You paste the key file the service gave you (a JSON file with a client_email and a private_key), the address the service gives out access tokens at, and the scopes to ask for. MountDev Ops seals the whole file in your workspace. When a call is made, it signs a short request with the private key and trades it at the token address for an access token, then sends the call with that token.
- One-Time Sign-In. You enter the client id and client secret from your own account with the service, the service's sign-in address, its token address, and the scopes. You select Sign In, approve at the service once, and the service sends you back. MountDev Ops trades the code it gets for a lasting sign-in (a refresh token) and seals it at once. When a call is made, it trades that for a fresh access token.
Neither style is tied to one service. The addresses are yours to enter: for example, a service that lives at api.example.com might give out tokens at https://auth.example.com/token and ask people to sign in at https://login.example.com/authorize.
What Is Saved and What Is Never Kept
- The key file, the client secret, and the lasting sign-in are sealed with your company's own key, and never shown again.
- The signed request and every access token are never saved. An access token is held in memory only, reused until a minute before it ends, and asked for again after that.
- A token, a secret, or a key is never put in a workflow run, the Activity Log, an error message, or a list.
- The scopes, the token address, and (for a one-time sign-in) the client id and sign-in address are not secret. They are shown on the connection.
Scopes
Scopes say what the connection may do at the service, such as read:items. Enter up to 20, separated by spaces or commas. For a one-time sign-in, Sign In shows the scopes in plain words before you go to the service, and the service's own page shows them again. After you approve, the connection shows the scopes the service says it allowed. Changing the scopes, the client id, the client secret, or any address of a one-time sign-in ends the sign-in, so you sign in again and approve the new scopes. Changing only the name or purpose keeps it.
Adding and Signing In
Actions (owners, admins, and anyone whose role allows changing setup; never AI agents or API keys):
core.connections.saveadds or changes the connection with the sign-in styleservice_accountoroauth, with the detailstoken_address,scopes, and for a one-time sign-inclient_idandauthorize_address, and the key file (secret) or the client secret (signing_secret).core.connections.signin.startstarts a one-time sign-in. It answers the service's sign-in address and the scopes, and keeps a one-time value that works once, for 15 minutes.core.connections.signin.finishis called by the workspace when the service sends the person back to the return address (/account/connection/callback). It works only for the person and company that started the sign-in, only once, and only within 15 minutes. The return window says what happened and never shows a code or a token.core.connections.check(Check Now) proves the sign-in. With a check address it also makes one GET with the access token. Without one it only proves the trade.
Changing how a connection signs in needs its own new key. The old key is never reused as another kind of secret.
When Something Is Wrong
- A service that ended the sign-in, or a refresh the service no longer accepts: the connection shows Failing with "The service ended this sign-in. Select Sign In to do it again."
- A one-time sign-in that was never finished: "This connection has not been signed in yet. Select Sign In."
- A key file the service does not accept: "The service did not accept the service account key (400). Check that the key is still active and the scopes are allowed." The service's own wording is never repeated.
- A token address that is not https, is on a private network, or does not resolve to a public address is refused when it is saved and again at every trade.
Using It in a Workflow
The Call a Web Service step calls these connections like any other custom connection (action core.web_call). The sign-in happens inside the step. The access token never appears in the step, the run log, or an error. A service that sends a new lasting sign-in with a refresh has it kept in place of the old one in the same call.
Username and Password Sign-In
Some services have no key at all. You sign in with a username and password, and the service answers with a token that lasts a while (Rocket.net's lasts 7 days). A custom connection can do the sign-in for you and renew the token on its own, for any service. The example here is a made-up service at example.com.
In Add a Connection, choose Username and Password Sign-In under How It Signs In, then fill in:
- Sign-In Address. Where the service signs you in, like https://api.example.com/v1/login. It must start with https://.
- Username and Password. Typed once, sealed together with your company's own key, and never shown again. Leave them empty on a later save to keep the saved ones.
- Username Field and Password Field. The names the service wants them under. They start as
usernameandpassword. - Send Them As. JSON (the start) or Form.
- Token Is At. Where the token is in the service's answer, like
tokenordata.access_token. - Token Lasts (Hours). From the service's own words, for example 168 for 7 days (1 to 720).
- Token Header (Optional). Empty sends the token as
Authorization: Bearer <token>. Name a header to send it there instead.
What it does:
- Before a call, if there is no token or less than a tenth of its life is left (at least a minute, at most an hour), MountDev Ops signs in and keeps the token, sealed, on the connection. A restart does not sign in again.
- If a call answers 401, it signs in again once and sends the call once more.
- A service that is busy or does not answer is tried again after 30 seconds.
- If the service refuses the username or password, the connection shows Needs Attention with the reason, nothing is sent, and every owner and admin gets one notice in Needs You Today and on the bell. The password is never in it. The connection is not tried again by itself, so a wrong password is never repeated. Change the username or password, or select Check Now. When the sign-in works, the notice clears and owners and admins are told it works again.
- The username, password, and token are never shown, returned, logged, or put in a workflow run or an error. AI agents and API keys cannot add, change, check, or read these connections.
- Changing the sign-in address, a field name, the format, the token's place or life, or the username or password drops the held token and asks for a new check.
A business can connect a service like this with its own login, and its clients can bring their own login to their own account the same way. Each account's token stays in that account.
Choosing the Other Styles on the Screen (Planned)
The Add a Connection pop up offers Username and Password Sign-In. It does not offer Service Account Key or One-Time Sign-In yet. Their actions work now; their screens wait for their design to be approved.
Where to Find It
Settings, then Connections, then Connected Services. Owners and admins see it.