Guides · Security
Connect with your own OAuth app
Register your organization's app at a provider once; connecting Facebook, LinkedIn, Google and others is then a one-click sign-in, and agents never see the tokens.
Connections that sign in with a provider (Facebook, Instagram, Threads, LinkedIn, X, YouTube, TikTok, Pinterest, Twitch, Google, Microsoft 365, Slack, GitHub and others) use your organization's own app at that provider. You register it once under Connectors → OAuth apps; after that, connecting is a single Connect button. The access belongs to your app, so revoking the app at the provider revokes it everywhere.
Register an app#
- Create an app in the provider's developer console (the console links to it).
- Add the redirect URI the console shows, e.g.
https://console.example.com/connections/oauth/callback. - Paste the app's client ID and client secret. The secret is stored as a KMS envelope and never shown or
returned again (
GET /v1/oauth-appsreturns onlyhasSecretand the last four characters).
PUT /v1/oauth-apps/{provider} registers or updates an app (connectors:manage); omitting clientSecret keeps
the stored one.
Connect#
Connect starts the sign-in with POST /v1/connections/{id}/oauth/start without a clientId. At the callback,
GebSecure exchanges the code with the stored secret: nobody types it. The token goes to the vault; agents only ever
call POST /v1/execute, and the broker adds the credential.
Facebook Pages#
Meta's sign-in returns a short-lived token for the person. GebSecure:
- exchanges it for a long-lived token (
fb_exchange_token, with your app secret, server side); - lists the Pages the person granted access to, and asks which one the connection acts as (one Page is chosen automatically);
- stores only that Page's token (a Page token obtained this way does not expire). The person's token is never stored.
Optional: create a Facebook Login for Business configuration in your Meta app (it presets the permissions and
assets) and enter its ID as the login configuration ID; GebSecure sends it as config_id.
Until Meta approves your app for advanced access, only people with a role on the app (administrators, developers, testers) can connect their Pages; that is enough to connect your own Pages.
If the Page token stops working (the person lost their role on the Page, or removed the app), Test connection fails with Meta's explanation; Reconnect signs in again.