Sign-in providers
/admin/dashboard/settings
System settings holds three things for the whole installation: the sign-up policy — who
may create an account — the sign-in providers — the OAuth and OpenID Connect identity providers
people can use on the sign-in page and link on Linked accounts —
and single sign-on, a workspace's own SAML or OIDC identity provider for the email domains it
owns (see Single sign-on).
Both can be set in the database, from this screen, or in .env; a value stored here
overrides the environment, and a blank field falls back to it. Sign in to the admin console and
choose System settings in the sidebar.


/admin/dashboard/settingsThe Sign-up card comes first, then Single sign-on, then one card per provider.
:::tip Sign-in providers or single sign-on?
A sign-in provider here is one app registration for the whole installation — anyone with a
GitHub or Okta account can use it. Single sign-on connects one company's identity provider,
only for the email domains that company owns, and is set up on the
Single sign-on card. Use single sign-on when a customer wants their people
to sign in with their own Okta, Entra ID or other IdP.
::: The list shows only providers that
are configured — anything stored in the database for them, or a row that once existed. A
provider set up purely in .env does not appear until you add it.
Sign-up policy
The Sign-up card decides who can create an account. One policy covers every way in — the email form and each sign-in provider — so a mode can never apply to one and not another. It only gates new accounts: people who already have an account sign in under every mode.


/admin/dashboard/settings| Mode | Who can create an account | What a refused person sees |
|---|---|---|
| Open | Anyone. With Allowed email domains filled in, only addresses at those domains | New accounts on this server are limited to approved email domains… |
| Invite only | No one on their own. A workspace administrator invites people who already have an account, and they sign in as usual | New accounts on this server are by invitation only… |
| Closed | No one | New account sign-ups are currently disabled on this server… |
To set the policy:
- Under Who can create an account, choose “Open”, “Invite only” or “Closed”.
- For Open, optionally fill in Allowed email domains — one domain per line, for example
northwind.io. Leave it empty to allow any domain. Domains match exactly, so list a subdomain such asmail.northwind.ioon its own line. The field is switched off for the other two modes. - Click “Save”. A Saved note confirms it, and the footer reads Last changed … by ….
An entry that is not a domain — an email address, a URL, a wildcard — is named under the field and Save stays switched off until it is fixed.
Until you save a policy, .env decides. The card then carries an Env-derived chip and its
footer reads Not stored — .env gives Open (or Closed): AUTH_SIGNUP_DISABLED=true in
apiome-ui/.env closes sign-up, and anything else leaves it open. Saving stores the policy in the
database, where it wins over the variable. Click “Use .env” to remove the stored policy and go
back to the variable.
The sign-up page, /signup, follows the policy: Open lists the providers and the email form
(and names the allowed domains), while Invite only and Closed show only a notice and the
sign-in link.
A saved policy applies to the next sign-up — no restart. Other server instances pick it up when
their policy cache expires, within 30 seconds by default (SIGNUP_POLICY_CACHE_TTL_SECONDS, 1–300
seconds, read by both apiome-ui and apiome-rest). Tightening the policy also stops a sign-up that
is part-way through. Every change is recorded in the apiome.signup_policy_audit table with the
policy before and after it.
If the database cannot be read, Apiome keeps using the last policy it read; with none to fall back on, it refuses new accounts until the database is back.
Abuse protection
A public sign-up page invites scripted accounts and email bombing, so sign-up carries guards. Each refuses with its own message, and each refusal is recorded:
| Guard | Applies to | What the person sees |
|---|---|---|
| Rate limits — 20 sign-up or Resend email requests an hour per network, 3 sign-up emails an hour per address | Email sign-up | Too many sign-up attempts. Wait an hour, then try again. |
| Rate limit — 10 provider sign-ups a minute per network | Provider sign-up | Too many sign-up attempts from your network… |
| Disposable email addresses — a list of throwaway email services Apiome ships, plus your Blocked email domains | Email sign-up | Addresses from disposable email services cannot be used to sign up… |
| Security check — Cloudflare Turnstile, when configured | Email sign-up form | We could not confirm the security check… |
Provider sign-up meets only its rate limit: the provider has already confirmed the address.
To block more domains, fill in Blocked email domains on the Sign-up card — one domain per
line, for example throwaway.example — and click “Save”. A listed domain also blocks its
subdomains. The field works in every mode and adds to the bundled list, which always applies. The
domains are stored with the policy, so Use .env removes them too.
Recent blocked sign-ups, at the foot of the card, lists the latest refusals: when, the Reason, the Path (Email, or Provider sign-up), the Address when one was entered, and a Client code. Equal client codes mean the same network; the code is a cut of a salted hash, so no IP address is ever shown. Click “Refresh” to reload it. A rate limit is listed once per window, however many requests were refused. Sign-up happens before any workspace exists, so these refusals appear here, never in a workspace's Access audit.
Email sign-up
People can create an account with an email address and a password
(Create an account) when the
installation can send them a confirmation link. Set all three in apiome-ui/.env:
| Variable | What it is |
|---|---|
SENDGRID_API_KEY | The SendGrid key Apiome sends email with (two-factor email codes use it too) |
EMAIL_FROM | The sender address, for example Apiome <no-reply@apiome.example> |
BETTER_AUTH_URL | The public address of Apiome, which the confirmation link points at, for example https://apiome.example |
With any of them missing, Create one offers only the providers and says that email sign-up is not available. Restart apiome-ui after changing them.
The sign-up policy above applies to email sign-up exactly as it does to providers. Other rules:
- No account can be used before its email is confirmed. The confirmation link works once and expires after 24 hours; each new email replaces the previous link.
- The form never says whether an address is registered. Someone who signs up with an address that already has an account sees the same Check your email page; the owner of the address gets an email saying the account exists, with a sign-in link.
- Email is rate-limited. One address gets at most 3 sign-up emails an hour, and one network at most 20 sign-up requests an hour.
- Disposable addresses are refused, and an optional security check can sit on the form — see Abuse protection.
Confirmation links are stored only as a hash, in the apiome.email_verification_token table.
Terms and privacy links
The sign-in and sign-up pages end with By signing in (creating an account), you agree to our
Terms of Service and Privacy Policy — but only for the pages your installation has. Set
APIOME_TERMS_URL and APIOME_PRIVACY_URL in apiome-ui/.env to their https:// addresses;
with neither set the line is left out, rather than linking to nothing.
Two-factor codes by email and text message
Anyone with two-factor authentication can
ask for a one-time sign-in code instead of using their authenticator app. The code is emailed when
SendGrid is set (SENDGRID_API_KEY and EMAIL_FROM, as above). To let people get it by text
message as well, set these in apiome-ui/.env and restart apiome-ui:
| Variable | What it is |
|---|---|
TWILIO_ACCOUNT_SID | Your Twilio Account SID (AC…) |
TWILIO_AUTH_TOKEN | The Auth Token for that account |
TWILIO_FROM_NUMBER | The Twilio number texts are sent from, with its country code, such as +14155550100 |
TWILIO_MESSAGING_SERVICE_SID | Optional: a Messaging Service SID (MG…) to send through instead of TWILIO_FROM_NUMBER |
You need the SID, the token and one of the two senders. With any of them missing, the Text message code box does not appear on Profile, and nobody's codes are texted.
How it behaves:
- Each person chooses. Codes go by email until someone adds and verifies a phone number and chooses text messages; choosing asks for their password. A new number puts their codes back on email.
- A phone is never a way in. It only receives two-factor codes. Signing in, resetting a password and creating an account by phone are switched off.
- Texts are limited. One number gets a text at most every 30 seconds and at most 5 an hour, on top of the sign-in rate limits. The limit is kept per apiome-ui process, so several replicas each allow that many.
- If texting stops working — the variables are removed, or the person removes their number — their codes go to their email again, so they can still sign in.
Text messages can be intercepted when someone takes over a phone number (SIM swapping). An authenticator app stays the stronger choice; say so to people who handle sensitive data.
The providers
| Provider | Id | Required to enable | Extra settings |
|---|---|---|---|
| GitHub | github | client ID, client secret | OAuth base URL, API base URL (GitHub Enterprise Server) |
| GitLab | gitlab | client ID, client secret | Base URL (self-hosted GitLab) |
| Microsoft | azure | client ID, client secret | Tenant (common allows any), Authority base URL |
google | client ID, client secret | Workspace domain — restrict sign-in to one domain | |
| Okta | okta | client ID, client secret, issuer | Issuer |
| AWS (Cognito) | aws | client ID, client secret, issuer | Issuer (the user-pool issuer) |
| Keycloak | keycloak | client ID, client secret, issuer | Issuer (the realm issuer) |
| OIDC | oidc | client ID, client secret, issuer | Issuer, Display name, Scopes |
| Auth0 | auth0 | client ID, client secret, issuer | Issuer |
| LINE | line | client ID, client secret | — |
| VK | vk | client ID, client secret | — |
wechat | client ID, client secret | — | |
| Atlassian | atlassian | client ID, client secret | — |
| Bitbucket | bitbucket | client ID, client secret | — |
| Slack | slack | client ID, client secret | — |
linkedin | client ID, client secret | — | |
| Discord | discord | client ID, client secret | — |
| Salesforce | salesforce | client ID, client secret | Issuer — a My Domain or a sandbox; https://login.salesforce.com when left empty |
| Notion | notion | client ID, client secret | — |
| Figma | figma | client ID, client secret | — |
| Linear | linear | client ID, client secret | — |
| Dropbox | dropbox | client ID, client secret | — |
| Zoom | zoom | client ID, client secret | — |
| Hugging Face | huggingface | client ID, client secret | — |
| Vercel | vercel | client ID, client secret | — |
| Railway | railway | client ID, client secret | — |
| HubSpot | hubspot | client ID, client secret | — |
| Apple | apple | Services ID, private key (.p8), Team ID, Key ID | Team ID, Key ID |
facebook | client ID, client secret | — | |
| X (Twitter) | twitter | client ID, client secret | — |
reddit | client ID, client secret | — | |
| Spotify | spotify | client ID, client secret | — |
| Twitch | twitch | client ID, client secret | — |
| TikTok | tiktok | client key (in the client ID field), client secret | — |
| Roblox | roblox | client ID, client secret | — |
| Kick | kick | client ID, client secret | — |
| PayPal | paypal | client ID, client secret | Environment — sandbox for a sandbox app; live when left empty |
| Polar | polar | client ID, client secret | — |
| Patreon | patreon | client ID, client secret | — |
| Gumroad | gumroad | client ID, client secret | — |
| Paybin | paybin | client ID, client secret | — |
OIDC is any conformant OpenID provider (Authentik, PingFederate, ZITADEL and others); one generic OIDC provider is supported per installation.
Atlassian signs people in with the Atlassian account they use for Jira and Confluence. Its endpoints are fixed, so it needs only a client ID and a client secret.
Bitbucket is Bitbucket Cloud. Its client ID is the OAuth consumer's Key and its client secret the consumer's Secret. Bitbucket Data Center is not supported.
Slack is Sign in with Slack, for teams whose shared identity is their Slack workspace. Its endpoints are fixed, so it needs only a client ID and a client secret.
LinkedIn is Sign In with LinkedIn using OpenID Connect, for people who sign in with their LinkedIn account. Its endpoints are fixed, so it needs only a client ID and a client secret. Its client secret is the app's Primary Client Secret.
Discord is for developer communities whose members already have a Discord account. Its endpoints are fixed, so it needs only a client ID and a client secret.
Salesforce signs people in with the account they use for a Salesforce org. Its client ID
is the app's Consumer Key and its client secret the Consumer Secret. Unlike Okta's,
its Issuer is optional: leave it empty to sign in through https://login.salesforce.com, or
set it to your org's My Domain (https://acme.my.salesforce.com) to send everyone to that org's
own login page, or to https://test.salesforce.com for a sandbox.
Notion is for product and documentation teams whose people already have a Notion account. Its endpoints are fixed, so it needs only a client ID and a client secret — the OAuth Client ID and OAuth Client Secret of a public Notion integration. Notion is a Link first provider: people link it to an account they already have, and nobody can create an account with it (see How a provider's email is trusted).
Figma is for designers and front-end developers whose people already have a Figma account. Its endpoints are fixed, so it needs only a client ID and a client secret — the Client ID and Client secret of a Figma OAuth app. Like Notion, Figma is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
Linear is for product-engineering teams that track their work in Linear. Its endpoints are fixed, so it needs only a client ID and a client secret — the Client ID and Client secret of a Linear OAuth application. Like Notion and Figma, Linear is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
Dropbox is for people whose personal or work identity is their Dropbox account. Its endpoints are fixed, so it needs only a client ID and a client secret — the App key and App secret of a Dropbox app.
Zoom is for organizations whose people already have a Zoom account. Its endpoints are fixed, so it needs only a client ID and a client secret — the Client ID and Client Secret of a Zoom General App.
Hugging Face is Sign in with Hugging Face, for machine-learning teams whose people already have a Hugging Face account. Its endpoints are fixed, so it needs only a client ID and a client secret — those of a Hugging Face OAuth app.
Vercel is Sign in with Vercel, for frontend and API teams whose people already have a Vercel account. Its endpoints are fixed, so it needs only a client ID and a client secret — those of an App in your Vercel team's settings.
Railway is Login with Railway, for indie and startup API builders who deploy on Railway. Its endpoints are fixed, so it needs only a client ID and a client secret — those of a Web OAuth app in your Railway workspace's settings. Like Notion, Figma and Linear, Railway is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
HubSpot is HubSpot's OAuth sign-in, for the marketing and CRM teams that consume your APIs. Its endpoints are fixed, so it needs only a client ID and a client secret — those of a public app in a HubSpot developer account. HubSpot is also a Link first provider: people link it to an account they already have, and nobody can create an account with it.
Apple is Sign in with Apple, for people who sign in with their Apple Account. It has no
client secret to copy. Its client ID is a Services ID, and in place of a secret you give
Apiome a private key — the .p8 file of a Sign in with Apple key — with the key's Key ID
and your Apple Developer Team ID. Apiome uses the key to sign a fresh, five-minute client
secret for each sign-in, so there is nothing to renew; to rotate, see
Rotate Apple's private key. People who choose Hide My Email share
a private relay address with Apiome, which never matches the address on an account they already
have — see Apple and Hide My Email.
Facebook is Facebook Login, for the many people whose main online identity is Facebook. Its endpoints are fixed, so it needs only a client ID and a client secret — the App ID and App secret of an app in Meta for Developers. Facebook is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
X (Twitter) is Sign in with X, for the developer-adjacent audience on X. Its endpoints are fixed, so it needs only the OAuth 2.0 Client ID and Client Secret of an app in the X Developer Portal. X often shares no email address at all, and Apiome never trusts the one it does share, so X is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
Reddit is for the developer communities on Reddit. Its endpoints are fixed, so it needs only the client ID and secret of a web app created on Reddit's app preferences page. Reddit shares no email address at all, so it is a Link only provider: people link it to an account they already have, and nobody can create an account with it.
Spotify is for the developer communities on Spotify. Its endpoints are fixed, so it needs only the Client ID and Client secret of an app in the Spotify Developer Dashboard. Spotify does not check that the email address it shares belongs to the person, so it is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
Twitch is for the developer-streaming communities on Twitch. It is OpenID Connect on one fixed issuer, so it needs only the Client ID and Client Secret of a Confidential application in the Twitch Developer Console. Twitch reports whether the email address is verified, so it is a Trusted provider: a verified address joins the account with that address, or starts a new one.
TikTok is for the developer and creator communities on TikTok. Its endpoints are fixed, so it needs only the Client key and Client secret of a TikTok for Developers app with Login Kit. TikTok calls its client ID a client key: enter it in the client ID field. TikTok shares no email address at all, so it is a Link only provider: people link it to an account they already have, and nobody can create an account with it.
Roblox is for the creator communities on Roblox. It is one fixed OpenID Connect issuer, so it needs only the Client ID and Client secret of an OAuth 2.0 App on the Roblox Creator Dashboard. Apiome asks Roblox for profile details only — never an email address — so it is a Link only provider: people link it to an account they already have, and nobody can create an account with it.
Kick is for the streaming communities on Kick. Its endpoints are fixed, so it needs only the Client ID and Client Secret of an app created under Settings → Developer on Kick. Kick shares an email address but does not say whether it is verified, so it is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
PayPal is Log in with PayPal, for people who already have a PayPal account — useful where
Apiome meets commerce workflows. It needs the Client ID and Secret of a PayPal REST API
app with Log in with PayPal turned on. Its Environment is optional: leave it empty for
live PayPal, or set it to sandbox when the credentials come from a Sandbox app, so people
sign in with PayPal sandbox test accounts. Any other value means live.
Polar is for the open-source and API creators who sell through Polar. It needs the Client ID and Client Secret of an OAuth app created under Settings → Developers on Polar; there is no issuer to set. Polar says whether the email address is verified, so a verified Polar address joins or creates an account.
Patreon is for the creator communities that publish APIs and docs through Patreon. It needs the Client ID and Client Secret of a client created under Clients & API Keys on the Patreon developer portal; there is no issuer to set. Patreon says whether the email address is verified, so a verified Patreon address joins or creates an account.
Gumroad is for the creators who sell API products, docs and templates on Gumroad. It needs the Application ID and Application Secret of an application created under Settings → Advanced → Applications on Gumroad; there is no issuer to set. Gumroad shares an email address but does not say whether it is verified, so it is a Link first provider: people link it to an account they already have, and nobody can create an account with it.
Paybin is for the merchants and teams who already use Paybin. It needs the client ID and
client secret of an OAuth client registered with Paybin's identity provider (idp.paybin.io);
there is no issuer to set. Paybin says whether the email address is verified, so a verified Paybin
address joins or creates an account.
Register the OAuth application
Each provider needs an OAuth (or OIDC) application registered on its side. Its callback or redirect URI is:
<BETTER_AUTH_URL>/api/auth/oauth2/callback/<id>
where <BETTER_AUTH_URL> is the public URL of the Apiome web app and <id> is the provider's id from
the table — for example https://apiome.example.com/api/auth/oauth2/callback/github. Copy the
application's client ID and client secret; issuer-based providers also give you an
issuer URL, such as https://acme.okta.com/oauth2/default.
Settings on the provider's side
Apiome requests the scopes it needs itself and trusts an email address only when the provider says it is verified — a missing claim counts as unverified (see How a provider's email is trusted). A few providers need more than the callback URI:
| Provider | Where to register | What else to set |
|---|---|---|
| GitHub | Settings → Developer settings → OAuth Apps → New OAuth App (or the organization's settings) | Nothing — copy the client secret straight away; GitHub shows it once |
| GitLab | Settings → Applications → Add new application (user, group or instance) | Tick Confidential and the read_user scope. For a self-managed instance, set Base URL |
| Microsoft | Entra admin center: Identity → Applications → App registrations → New registration, platform Web | Copy the secret's Value, not its ID. Add the xms_edov optional claim (Token configuration → ID token) — without it every Entra address counts as unverified and people must verify their email instead of joining their tenant. Single-tenant apps set Tenant |
| Cloud console: APIs & Services → Credentials → OAuth client ID, type Web application | Configure the consent screen first (Internal for one Workspace). Workspace domain rejects any account outside that domain — the check is on the returned token, not just the sign-in page | |
| Okta | Applications → Create App Integration → OIDC → Web Application | Assign who may sign in. Issuer: https://<okta-domain>/oauth2/default, or /oauth2/<server-id> for a custom authorization server |
| AWS (Cognito) | User pool: App integration → App clients, a confidential client with the authorization-code grant | Configure a Cognito domain for the Hosted UI. Issuer: https://cognito-idp.<region>.amazonaws.com/<user-pool-id> |
| Keycloak | Realm: Clients → Create client, OpenID Connect with client authentication on | Map email and email verified onto the ID token. Issuer: https://<host>/realms/<realm> |
| OIDC | A confidential client with the authorization-code grant | The issuer must serve <issuer>/.well-known/openid-configuration and emit email and email_verified |
| Auth0 | Applications → Create Application → Regular Web Applications | Issuer: https://<tenant>.auth0.com, or your custom domain |
| Atlassian | Developer console: Create → OAuth 2.0 integration | Under Permissions, add the User identity API with the read:me and read:account scopes. Under Authorization, add OAuth 2.0 (3LO) with the callback URL. Set Distribution to Sharing so people outside your own Atlassian account can sign in. No issuer |
| Bitbucket | Workspace Settings → OAuth consumers → Add consumer | Keep This is a private consumer ticked. Under Permissions → Account, tick Email and Read — without Email, sign-in fails with email required. People sign in with their primary Bitbucket address, which must be confirmed. No issuer |
| Slack | api.slack.com/apps: Create New App → From scratch | Under OAuth & Permissions, add the callback URL to Redirect URLs — Slack accepts only https:// URLs — and add openid, profile and email to User Token Scopes. Turn on Manage Distribution → Activate Public Distribution so people from other Slack workspaces can sign in. The client ID and client secret are under Basic Information → App Credentials. No issuer |
| Developer Portal: Create app | The app must be associated with a LinkedIn Page. On the Products tab, Request access to Sign In with LinkedIn using OpenID Connect — without it, LinkedIn refuses the sign-in. On the Auth tab, add the callback URL to Authorized redirect URLs for your app; the Client ID and Primary Client Secret are on the same tab. Keep the same app once people have signed in: LinkedIn identifies each person per app, so a new app does not recognize them. No issuer | |
| Discord | Developer Portal: New Application | On the OAuth2 page, Add Redirect with the callback URL and Save Changes. The Client ID is on the same page; choose Reset Secret to see the Client Secret, which Discord shows once. No bot is needed. People sign in with the email address of their Discord account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Salesforce | Salesforce Setup: External Client App Manager → New External Client App, or App Manager → New Connected App | Turn on Enable OAuth Settings, enter the callback URL as the Callback URL, and add the scopes Access the identity URL service (id, profile, email, address, phone) and Access unique user identifiers (openid). The client ID and client secret are the Consumer Key and Consumer Secret, under Manage Consumer Details. A new app can take up to 10 minutes to work. People sign in with the email address of their Salesforce user, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. Issuer is optional: https://<my-domain>.my.salesforce.com for one org, https://test.salesforce.com for a sandbox |
| Notion | Integrations: New integration, type Public | Add the callback URL under Redirect URIs. Under Capabilities → User Capabilities, choose Read user information including email addresses — without it, sign-in fails with email required. Apiome reads no pages, so the content capabilities can stay at their minimum, and people can share no pages on Notion's consent screen. The client ID and client secret are the OAuth Client ID and OAuth Client Secret. Notion does not say whether an email address is verified, so people link Notion from Linked accounts before they can sign in with it. No issuer |
| Figma | Developer apps: Create a new app | On the OAuth credentials tab, add the callback URL under Redirect URLs; the Client ID and Client secret are on the same tab, and Figma shows the secret once. On the OAuth scopes tab, select current_user:read — the only scope Apiome asks for; it reads no files. A new app is a draft that only its owning team can use: set it to Public and publish it to let anyone sign in. Figma does not say whether an email address is verified, so people link Figma from Linked accounts before they can sign in with it. No issuer |
| Linear | Linear Settings → API → OAuth applications: new application (a workspace admin creates it) | Add the callback URL under Callback URLs. Turn on Public to let people from other Linear workspaces sign in; leave it off to serve your own workspace only. The Client ID and Client secret are on the application's page. Apiome asks for the read scope — Linear has no narrower one — and uses it only to read the name, email address and picture of the person signing in; it reads no issues, projects or teams. Linear does not say whether an email address is verified, so people link Linear from Linked accounts before they can sign in with it. No issuer |
| Dropbox | App Console: Create app, Scoped access, App folder | On the Settings tab, add the callback URL under OAuth 2 → Redirect URIs. The client ID and client secret are the App key and App secret on the same tab; choose Show to see the secret. On the Permissions tab, keep account_info.read selected — the only scope Apiome asks for; it reads no files, so App folder access is enough. A new app has Development status and a limited number of users: choose Apply for production before opening sign-in to everyone. People sign in with the email address of their Dropbox account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Zoom | Zoom App Marketplace: Develop → Build App → General App, User-managed | On Basic Information, set the OAuth Redirect URL to the callback URL and add the same URL to the OAuth Allow Lists. The Client ID and Client Secret are under App Credentials on the same page. On Scopes, add user:read:user — the only scope Apiome needs; without it, sign-in fails. An app that is not published can be authorized only by people in the Zoom account that built it: publish it before opening sign-in to other Zoom accounts. People sign in with the email address of their Zoom account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Hugging Face | Create a new OAuth app in your Hugging Face settings; on a Team or Enterprise plan, an organization admin can create it under the organization's OAuth Apps settings instead | Create the app with a client secret — Apiome cannot use a public app that has none. Select the openid, profile and email scopes, the only ones Apiome asks for; it reads no models, datasets or Spaces. Add the callback URL as a redirect URI; Hugging Face requires an exact match. People sign in with the email address of their Hugging Face account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Vercel | Your Vercel team's Settings → Apps → Create | On the app's Manage page, add the callback URL under Authorization Callback URLs. On Permissions, enable openid, email and profile — the only scopes Apiome asks for; without email or profile, Vercel refuses the sign-in. On Authentication, keep client_secret_post selected. Click Generate for the client secret; the Client ID is on the same page. Apiome reads no projects, deployments or teams. Anyone with a Vercel account can sign in unless you set Sign-In Access to Members of the team on the app's General page. People sign in with the email address of their Vercel account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Railway | Your Railway workspace's Settings → Developer → New OAuth App (a workspace admin creates it) | Add the callback URL as a redirect URI; Railway requires an exact match. Choose the Web app type — a Native app has no client secret, and Apiome cannot use it. Copy the client secret as soon as the app is created: Railway shows it only once. The client ID is on the same page. Apiome asks for the openid, email and profile scopes only, and uses them to read the name, email address and picture of the person signing in; it reads no workspaces, projects or deployments. Railway does not say whether an email address is verified, so people link Railway from Linked accounts before they can sign in with it. No issuer |
| Apple | Certificates, Identifiers & Profiles in an Apple Developer Program account | Turn on Sign in with Apple for your App ID. Create a Services ID — its identifier is the client ID — turn on Sign in with Apple for it and, under Configure, add the host of BETTER_AUTH_URL under Domains and Subdomains and the callback URL under Return URLs. Apple accepts only https addresses on a real domain, not localhost. Create a key with Sign in with Apple turned on, download its .p8 file — Apple offers it only once — and note its Key ID and your Team ID. Apiome asks for the name and email scopes only. To mail people who use Hide My Email, register the domain Apiome sends mail from under Sign in with Apple for Email Communication. No issuer |
| An app in Meta for Developers with the Authenticate and request data from users with Facebook Login use case | Under Facebook Login → Settings, add the callback URL to Valid OAuth Redirect URIs; Facebook requires an exact match over HTTPS. Keep the email and public_profile permissions — the only ones Apiome asks for — and leave Require App Secret off under App settings → Advanced. The App ID (client ID) and App secret (client secret) are on App settings → Basic. Until you switch the app to Live, only people with a role on the app can sign in. Apiome reads the name, email address and picture of the person signing in; it reads no pages, posts or friends. Facebook does not say whether an email address is verified, so people link Facebook from Linked accounts before they can sign in with it. No issuer | |
| X (Twitter) | Your app in the X Developer Portal → User authentication settings → Set up | Turn on OAuth 2.0 and choose Web App, Automated App or Bot — a Native App has no client secret, and Apiome cannot use it. Add the callback URL under Callback URI / Redirect URL; X requires an exact match. Fill in Website URL, and turn on Request email from users (it needs a privacy policy and terms of service URL) for X to share email addresses. Copy the OAuth 2.0 Client ID and Client Secret — not the API key and secret. Apiome asks for the users.read, tweet.read and users.email scopes only, and uses them to read the name, email address and picture of the person signing in; it reads and posts no posts, followers or messages. X often shares no email address and Apiome does not trust the one it shares, so people link X from Linked accounts before they can sign in with it. No issuer |
| reddit.com/prefs/apps → create another app… | Choose web app — an installed app has no secret, and Apiome cannot use it. Set redirect uri to the callback URL; Reddit requires an exact match. The client ID is the string under the app's name, and the secret is labeled secret. Apiome asks for the identity scope only, and uses it to read the username and avatar of the person signing in; it reads no posts, comments, subreddits or messages. Reddit shares no email address, so people link Reddit from Linked accounts before they can sign in with it. No issuer | |
| Spotify | An app in the Spotify Developer Dashboard → Create app | Tick Web API, and add the callback URL under Redirect URIs; Spotify requires an exact match and accepts http only on a loopback address such as 127.0.0.1, not localhost. The Client ID is on the app's Settings page; choose View client secret for the Client secret. Until the app has an extended quota, only people added under User Management can sign in. Apiome asks for the user-read-email scope only, and uses it to read the name, email address and picture of the person signing in; it reads no playlists, library, listening history or playback. Spotify does not verify the email address it shares, so people link Spotify from Linked accounts before they can sign in with it. No issuer |
| Twitch | Twitch Developer Console → Register Your Application (your Twitch account needs two-factor authentication) | Add the callback URL under OAuth Redirect URLs; Twitch requires an exact match and accepts http only for localhost. Set Client Type to Confidential — a Public client has no secret, and Apiome cannot use it. Choose Manage on the application: the Client ID is shown there, and New Secret creates the Client Secret (Twitch shows it once). Apiome asks for the openid and user:read:email scopes only, and uses them to read the username, email address and picture of the person signing in; it reads no streams, follows, chat or subscriptions. People sign in with the email address of their Twitch account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| TikTok | An app on TikTok for Developers → Connect an app, with the Web platform and the Login Kit product | Under Login Kit, add the callback URL as a Redirect URI; TikTok requires an exact match over HTTPS. Keep the user.info.profile scope (Login Kit always adds user.info.basic) — the only one Apiome asks for. The Client key and Client secret are on the app's details page; the key goes in the client ID field. Until TikTok approves the app, only the accounts added as sandbox Target users can sign in. Apiome reads the display name, username and avatar of the person signing in; it reads no videos, followers, likes or messages. TikTok shares no email address, so people link TikTok from Linked accounts before they can sign in with it. No issuer |
| Roblox | Roblox Creator Dashboard → Credentials → OAuth 2.0 Apps → Create OAuth App | Add the callback URL under Redirect URLs; Roblox requires an exact match. Under Permissions add the openid and profile scopes only — Apiome asks for nothing else, not email. The Client ID is on the app's page; generate the Client secret there (Roblox shows it once). Apiome reads the display name, username and avatar of the person signing in; it reads no experiences, groups, inventory or Robux. Apiome reads no email address from Roblox, so people link Roblox from Linked accounts before they can sign in with it. No issuer |
| Kick | On Kick, Settings → Developer → Create new | Add the callback URL as the Redirect URL; Kick requires an exact match. Under Scopes tick Read user information (including email address) only — the only one Apiome asks for. The Client ID and Client Secret are shown on the app's page. Apiome reads the username, email address and profile picture of the person signing in; it reads no channels, chat, streams, followers or subscriptions. Kick does not say whether the email address is verified, so people link Kick from Linked accounts before they can sign in with it. No issuer |
| PayPal | PayPal Developer Dashboard → Apps & Credentials (choose Sandbox or Live) → Create App | Under Features, tick Log in with PayPal and open Advanced Settings: enter the callback URL as the Return URL, tick Full name and Email under the information requested from customers, fill in the privacy policy and user agreement URLs, and Save. The client ID and client secret are the app's Client ID and Secret. Apiome reads the name, email address and picture of the person signing in; it reads no payments, addresses or account details. People sign in with the email address of their PayPal account, which must be confirmed — otherwise sign-in fails with could not confirm that your email address is verified. Environment is sandbox for a Sandbox app; leave it empty for a Live one |
| Polar | On Polar, Settings → Developers → New OAuth App | Add the callback URL as a Redirect URI; Polar requires an exact match. Keep the client type Confidential and tick the openid, profile and email scopes only — the ones Apiome asks for. The Client ID and Client Secret are shown once the app is created. Apiome reads the name, email address and avatar of the person signing in; it reads no organizations, products, orders, subscriptions or customers. People sign in with the email address of their Polar account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Patreon | Patreon developer portal → Clients & API Keys → Create Client | Add the callback URL under Redirect URIs; Patreon requires an exact match. Keep the Client API Version at 2. The Client ID and Client Secret are shown on the client once it is created. Apiome asks for the identity[email] scope only and reads the name, email address and profile image of the person signing in; it reads no campaigns, memberships, pledges or posts. People sign in with the email address of their Patreon account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| Gumroad | On Gumroad, Settings → Advanced → Applications → create an application | Give it a name and enter the callback URL as the Redirect URI; Gumroad requires an exact match. The client ID and client secret are the application's Application ID and Application Secret — not the access token Gumroad can generate on the same page. Apiome asks for the view_profile scope only and reads the name, email address and profile picture of the person signing in; it reads no products, sales, subscribers or payouts. Gumroad does not say whether the email address is verified, so people link Gumroad from Linked accounts before they can sign in with it. No issuer |
| Paybin | Register an OAuth client with Paybin's identity provider (idp.paybin.io) | Enter the callback URL as the client's redirect URI; it must match exactly. Allow the openid, email and profile scopes — the ones Apiome asks for — and the authorization-code grant, and keep the client confidential so it has a client secret. Apiome reads the name, email address and picture of the person signing in from Paybin's id token; it reads no wallets, payments or balances. People sign in with the email address of their Paybin account, which must be verified — otherwise sign-in fails with could not confirm that your email address is verified. No issuer |
| HubSpot | A public app in your HubSpot developer account | On the app's Auth settings, add the callback URL as a redirect URL; HubSpot requires an exact match. Keep oauth as the only required scope — the only one Apiome asks for; a required scope Apiome does not ask for makes HubSpot refuse the sign-in. The Client ID and Client secret are on the same page. Apiome reads the email address of the person signing in and nothing else; it reads no contacts, companies, deals or other HubSpot data. HubSpot does not say whether an email address is verified, so people link HubSpot from Linked accounts before they can sign in with it. No issuer |
The full per-provider guide — including LINE, VK and WeChat, the environment variable matrix, boot
validation and secret encryption — is
apiome-ui/docs/AUTH_PROVIDER_SETUP.md
in the repository.
How a provider's email is trusted
A provider sign-in joins an existing account, or creates a new one, only when the provider proves the email address is verified. Apiome never takes an address on trust: a provider that let someone claim an address they do not own would hand them that person's account. Each provider is in one of three classes:
| Class | What the provider gives Apiome | What a sign-in does | Providers |
|---|---|---|---|
| Trusted | An email address and proof it is verified | Joins the account with that address, or creates one. An address the provider does not report as verified is refused: Your sign-in provider could not confirm that your email address is verified… | GitHub, GitLab, Microsoft, Google, Okta, AWS (Cognito), Keycloak, OIDC, Auth0, LINE, Atlassian, Bitbucket, Slack, LinkedIn, Discord, Salesforce, Dropbox, Zoom, Hugging Face, Vercel, Apple, Twitch, PayPal, Polar, Patreon, Paybin |
| Link first | An email address, with no proof it is verified | Never matches an account by email. Signs in only people who have already linked the provider | VK, Notion, Figma, Linear, Railway, HubSpot, Facebook, X (Twitter), Spotify, Kick, Gumroad |
| Link only | No email address | The same as Link first — there is no address to match | WeChat, Reddit, TikTok, Roblox |
For a Link first or Link only provider, people sign in another way first, link the provider on Linked accounts, and can sign in with it from then on. The class is fixed per provider and is not a setting: no administrator option makes Apiome trust an unproven address.
Someone who tries a Link first provider before linking it — to sign up, or to sign in for the first time — is sent back to the sign-in page with Your sign-in provider could not confirm that your email address is verified…, even when the address matches their account. Nothing is created or linked.
LINE sends its verified claim only when the channel has the approved email permission; without
it, LINE behaves as Link first. Microsoft needs the xms_edov claim — see the table above.
Apple and Hide My Email
When someone signs in with Apple they can choose Hide My Email. Apple then shares a private
relay address, such as x7k2p9q4mz@privaterelay.appleid.com, that forwards to their real inbox.
Apple reports the relay address as verified, so Apiome treats it like any verified address — but:
- It never matches an existing account. Someone whose Apiome account uses their real address and who signs in with Apple and Hide My Email gets a new account under the relay address. To use Apple with the account they already have, they sign in the usual way first, open Linked accounts and click “Link” on the Apple card. From then on “Continue with Apple” signs in that account, whichever address Apple shares.
- Mail reaches it only from a registered domain. Register the domain Apiome sends invitations and notifications from under Sign in with Apple for Email Communication in the Apple developer account; mail from any other domain to a relay address is dropped.
- A sign-up domain allowlist refuses it. If new accounts are limited to certain email domains,
privaterelay.appleid.comis not one of them, so a relay address cannot create an account; linking still works.
Apple sends the person's name only the first time they allow Apiome. Apiome stores it then, and later sign-ins keep it.
Developers adding a provider record its class in
apiome-ui/lib/auth/provider-trust-classes.ts; the per-provider guide lists the class of every
provider in the Better Auth catalog, including those not yet available.
Add a provider
-
Click “Add Provider” at the top right.
-
Search or scroll the list and click the provider — for example Okta.


Route /admin/dashboard/settings -
In Configure Okta, choose the Enablement:
- Enabled — turn the provider on, using the credentials stored here;
- Disabled — turn it off, whatever
.envsays; - Use .env — leave it to the environment variables.
-
Enter the Client ID, the Client secret and any extra settings, such as the Issuer. Leave a field blank to fall back to
.env. -
Click “Save”. The provider's card appears in the list.


/admin/dashboard/settingsBack returns to the list of providers; Cancel closes the dialog without saving.
Edit a provider
Each card carries the same fields. Its chip says how the provider is enabled now — Enabled (database), Disabled (database) or Env-derived — and every field that has no stored value shows using .env fallback.
- Change a field and click “Save”. Only the fields you changed are sent. A Saved note confirms it, and the footer reads Last changed … by ….
- The client secret is write-only. The card shows only Secret: set or Secret: not set —
never the value. Type a new value to replace it, or click “Clear stored secret” to remove it
on the next save (the provider then uses
.env); Undo cancels that. - Choosing “Enabled” needs every required field stored here. Values in
.envdo not count. If one is missing, saving is refused and the card lists what to fill in. - Apple's card names its fields as Apple does. Services ID is the client ID, and
Private key (.p8) is the write-only secret: paste the whole
.p8file — the field drops its line breaks, and Apiome reads it either way. Team ID and Key ID are extra settings.
Changes reach the sign-in page on the next sign-in, after the configuration cache expires — within
30 seconds by default (AUTH_PROVIDER_CONFIG_CACHE_TTL_MS, 5–60 seconds). No restart is needed.
Rotate Apple's private key
Apple's client secret is signed afresh for every sign-in, so it never expires. Rotate the private
key itself — on a schedule, when someone with access leaves, or at once if the .p8 file may have
leaked:
- In the Apple developer account, create a new key with Sign in with Apple turned on and
download its
.p8file. - On the Apple card, paste the new file into Private key (.p8), enter its Key ID and click “Save”. The next sign-in uses the new key; nobody is signed out.
- Revoke the old key in the Apple developer account. A team can have two Sign in with Apple keys at a time, so the old one keeps working until you revoke it.
Validate a provider
Click “Validate” to check whether the stored configuration is complete:
- Database configuration is complete — this provider can be enabled.
- Not ready to enable — missing: … — save the listed fields on the card first.
For OIDC, Validate also fetches the issuer's discovery document
(<issuer>/.well-known/openid-configuration) and reports the error if it cannot be read, so a wrong
issuer fails here rather than on the sign-in page.
Remove a provider
Click “Remove” and then “Remove provider” to confirm. This deletes the provider's stored row —
client ID, stored secret, enablement override and settings — and sign-in for the provider falls back
to .env. A removed secret cannot be recovered. The provider then appears in Add Provider again.


/admin/dashboard/settingsConfigure in .env instead
Every field has an environment variable in apiome-ui/.env — the console shows the variable under
each extra setting. The client credentials are:
| Provider | Client ID | Client secret |
|---|---|---|
| GitHub | GITHUB_ID | GITHUB_SECRET |
| GitLab | GITLAB_CLIENT_ID | GITLAB_CLIENT_SECRET |
| Microsoft | AZURE_AD_CLIENT_ID | AZURE_AD_CLIENT_SECRET |
GOOGLE_CLIENT_ID | GOOGLE_CLIENT_SECRET | |
| Okta | OKTA_CLIENT_ID | OKTA_CLIENT_SECRET |
| AWS (Cognito) | COGNITO_CLIENT_ID | COGNITO_CLIENT_SECRET |
| Keycloak | KEYCLOAK_CLIENT_ID | KEYCLOAK_CLIENT_SECRET |
| OIDC | OIDC_CLIENT_ID | OIDC_CLIENT_SECRET |
| Auth0 | AUTH0_CLIENT_ID | AUTH0_CLIENT_SECRET |
| LINE | LINE_CLIENT_ID | LINE_CLIENT_SECRET |
| VK | VK_CLIENT_ID | VK_CLIENT_SECRET |
WECHAT_CLIENT_ID | WECHAT_CLIENT_SECRET | |
| Atlassian | ATLASSIAN_CLIENT_ID | ATLASSIAN_CLIENT_SECRET |
| Bitbucket | BITBUCKET_CLIENT_ID | BITBUCKET_CLIENT_SECRET |
| Slack | SLACK_CLIENT_ID | SLACK_CLIENT_SECRET |
LINKEDIN_CLIENT_ID | LINKEDIN_CLIENT_SECRET | |
| Discord | DISCORD_CLIENT_ID | DISCORD_CLIENT_SECRET |
| Salesforce | SALESFORCE_CLIENT_ID | SALESFORCE_CLIENT_SECRET |
| Notion | NOTION_CLIENT_ID | NOTION_CLIENT_SECRET |
| Figma | FIGMA_CLIENT_ID | FIGMA_CLIENT_SECRET |
| Linear | LINEAR_CLIENT_ID | LINEAR_CLIENT_SECRET |
| Dropbox | DROPBOX_CLIENT_ID | DROPBOX_CLIENT_SECRET |
| Zoom | ZOOM_CLIENT_ID | ZOOM_CLIENT_SECRET |
| Hugging Face | HUGGINGFACE_CLIENT_ID | HUGGINGFACE_CLIENT_SECRET |
| Vercel | VERCEL_CLIENT_ID | VERCEL_CLIENT_SECRET |
| Railway | RAILWAY_CLIENT_ID | RAILWAY_CLIENT_SECRET |
| HubSpot | HUBSPOT_CLIENT_ID | HUBSPOT_CLIENT_SECRET |
| Apple | APPLE_CLIENT_ID (the Services ID) | APPLE_PRIVATE_KEY (the .p8 file) |
FACEBOOK_CLIENT_ID (the App ID) | FACEBOOK_CLIENT_SECRET (the App secret) | |
| X (Twitter) | TWITTER_CLIENT_ID (the OAuth 2.0 Client ID) | TWITTER_CLIENT_SECRET (the OAuth 2.0 Client Secret) |
REDDIT_CLIENT_ID (the string under the app's name) | REDDIT_CLIENT_SECRET (the app's secret) | |
| Spotify | SPOTIFY_CLIENT_ID (the app's Client ID) | SPOTIFY_CLIENT_SECRET (the app's Client secret) |
| Twitch | TWITCH_CLIENT_ID (the application's Client ID) | TWITCH_CLIENT_SECRET (the application's Client Secret) |
| TikTok | TIKTOK_CLIENT_KEY (the app's Client key) | TIKTOK_CLIENT_SECRET (the app's Client secret) |
| Roblox | ROBLOX_CLIENT_ID (the app's Client ID) | ROBLOX_CLIENT_SECRET (the app's Client secret) |
| Kick | KICK_CLIENT_ID (the app's Client ID) | KICK_CLIENT_SECRET (the app's Client Secret) |
| PayPal | PAYPAL_CLIENT_ID (the app's Client ID) | PAYPAL_CLIENT_SECRET (the app's Secret) |
| Polar | POLAR_CLIENT_ID (the app's Client ID) | POLAR_CLIENT_SECRET (the app's Client Secret) |
| Patreon | PATREON_CLIENT_ID (the client's Client ID) | PATREON_CLIENT_SECRET (the client's Client Secret) |
| Gumroad | GUMROAD_CLIENT_ID (the application's Application ID) | GUMROAD_CLIENT_SECRET (the application's Application Secret) |
| Paybin | PAYBIN_CLIENT_ID (the client's client ID) | PAYBIN_CLIENT_SECRET (the client's client secret) |
apiome-ui/.env.example lists them all with their extra settings — see
Operating Apiome. Salesforce's optional issuer is SALESFORCE_ISSUER;
PayPal's optional environment is PAYPAL_ENVIRONMENT.
Apple's Team ID and Key ID are APPLE_TEAM_ID and APPLE_KEY_ID; in .env, keep the
.p8 file on one line with \n for its line breaks.
If a saved provider does not appear at sign-in
Sign-in reads what you save here from the REST API each time, and falls back to .env when it
cannot. The server log of the app (or Studio) says which case you are in:
| Log line | Meaning | Fix |
|---|---|---|
INTERNAL_SERVICE_TOKEN is not set | That container has no service token, so it never asks | Set the same INTERNAL_SERVICE_TOKEN there as on the REST API |
resolved endpoint fetch to <url> failed | The REST API was not reached at <url> | Set REST_API_BASE_URL in that container to the REST API's address on its network, such as http://rest:8000/v1 — localhost inside a container is the container itself |
resolved endpoint returned <status> | The REST API answered with an error | 503: the REST API has no token. 403: the two tokens differ |
Studio serves its own sign-in routes, so it needs both variables as well.
With the API
The console calls the REST API's super-admin endpoints:
GET /v1/admin/auth-providers— every provider's configuration, with secrets masked;PUT /v1/admin/auth-providers/{provider_id}— update the fields sent;DELETE /v1/admin/auth-providers/{provider_id}— remove the stored row;GET /v1/admin/signup-policy— the sign-up policy in effect, and whether it is stored or comes from.env;PUT /v1/admin/signup-policy— store the policy (withblocked_email_domains), or send"mode": nullto remove the stored one;GET /v1/admin/signup-policy/blocked-attempts— the sign-up attempts an abuse guard refused, newest first (limit, 1–200).
See the API reference. There is no CLI command for the sign-up policy or sign-in providers.
Where next
- Sign-in and identity overview — every provider by kind, and when to use single sign-on or two-factor instead
- Sign in — what people see on the sign-in page
- Linked accounts
- Users
- Operating Apiome