On the Instance
So far everything ran on your machine. This chapter puts the connector on your instance, so that a user can connect an account in the Designer and chapter 5's third layer has something to run flows against.
Three things happen, in order: the connector is published, the instance gets its own copy of your OAuth app's credentials, and one account is connected. The first can fail before you type anything; the last needs a person.
Use a development instance, not the one your users work on. Every publish after this one follows Shipping Changes.
The prompt
Publish the connector to my Appmixer instance and set it up there so I can connect my Eventbrite account. The Appmixer CLI is already logged in to the instance.
Expect the agent to publish without asking, configure the OAuth app on the instance, read the instance's redirect URI, and then hand two things back: registering that URI with the provider, and connecting the account. If your account is not an administrator, the agent may not know the route that works for you — it is spelled out below.
Before the first publish: the vendor property
Your Appmixer account must carry a vendor property matching the vendor in your manifests: components named acme.eventbrite.core.FindEvents need vendor set to acme. An administrator sets it in Backoffice, on the Users page — see Publish your component and Basic Structure.
Check your account first:
appmixer user me # vendor: the list you may publish under; scope: whether you are an administratorWithout the right vendor, publishing fails in one of two ways:
no vendor at all
[ERROR]: User is not allowed to create components, no vendor assigned. (status 500)
at once, before any upload
a vendor, but not yours
Publishing failed with following error: then Vendor mismatch in component.json, allowed vendors are: 'acme', but 'appmixer' found.
after the upload
Both exit 1. The first is a permission refusal despite the 500; the second names whichever manifest the check reached first. Neither is something the agent can fix: an administrator sets the vendor, or you rename the connector (Scope and Research).
Publish
pack leaves artifacts/ out, so test plans, samples and E2E flows stay in your repository. Delete the zip afterwards.
Give the instance your OAuth app
The local login took the client id and secret from the command line. The instance has neither, and cannot start an OAuth flow until it does — nothing on your machine will tell you.
an administrator
appmixer service-config set <vendor>:<connector>
every user of the instance
anyone else
appmixer user-service-config set <vendor>:<connector> <config-name>
only you
For an administrator:
Anyone else gets [ERROR]: Insufficient scope (status 403) from service-config and stores the same values as a custom OAuth config instead:
oauth-app.json holds {"clientId": "…", "clientSecret": "…"}; -d '<json>' and stdin also work, but a file you delete afterwards keeps the secret out of your shell history and out of the conversation. Your configs are listed under Custom OAuth Configs in the Appmixer app. A per-user config is enough to build and test; shipping to other users needs an administrator to run service-config set once.
Point the redirect URI at the instance
The instance builds its redirect URI like the CLI — from the service name, no vendor, no colon:
Read the exact value off an authorization URL rather than typing it:
Use the dotted name. The colon form, which the command's own help shows, is refused with Missing vendor or service. (status 400).
Register the redirect_uri value with the provider. Eventbrite keeps only one redirect URI per key, so this replaces the local one from chapter 2 and local test auth login stops working until you swap it back; the token you already have keeps working. Providers that accept several URIs avoid the swap. Connecting before the provider has the new value fails with Redirect URI hostnames must match.
The human gate: connect the account
Open the Appmixer app as the user that saved the OAuth config — a per-user config is invisible to anyone else.
Add any component of your connector to a flow and connect an account.
If the dialog offers a choice of OAuth config, pick yours.
Approve on the provider's consent screen.
The CLI can run the same exchange:
Verify
Then open a component with dropdowns in the Designer and check that they fill — for Eventbrite, the organization list, then the events of the chosen organization. The CLI cannot exercise dropdowns, and a valid account says only that the credential works, not that the components using it do.
Next: Testing in Three Layers.
Last updated
Was this helpful?
