Login Providers

Players can sign up and sign in with an account they already have elsewhere: Google, Discord, X, Apple, any OpenID Connect provider, Telegram, or a provider a third-party plugin adds. The providers themselves come from plugins (see Social Login and Telegram Mini App Auth). This page covers the core admin screens that apply to every provider.

How sign-in with a provider works

  • A player who signs in with a provider for the first time gets a new account straight away when the provider gave everything the account needs. Otherwise they see a short Complete your profile step (username, and an email address when the provider did not give a trusted one).
  • If the provider’s email address already belongs to an account, nothing is linked automatically. The player sees "An account with this email exists", signs in with that account’s password (and two-factor code), and confirms the link. The account owner gets an email and an in-app notification whenever a sign-in method is added.
  • Two-factor authentication applies to provider sign-ins as it does to password sign-ins.
  • Admin accounts never sign in through a provider. They use their password and two-factor code only.
  • Players manage their own sign-in methods under Settings → Sign-in methods: link and unlink providers, or set a password on an account that was created through a provider. They cannot remove their last way to sign in.

Settings › Login Providers

Settings › Login Providers (/admin/login-providers) lists every provider that a plugin has registered, whichever plugin it comes from. When the Social Login plugin is active, the page links to it (Open Social Login), where you add and configure Google, Discord and OpenID Connect providers. If no plugin provides a login provider yet, the page shows Open Plugins instead. Refresh reloads the list.

ColumnMeaning
ProviderName and id (for example google, oidc:acme)
PluginThe plugin that registered it
EnabledEnabled, or Disabled in the owning plugin
Callback URLThe address to register with the provider (copy button), or Not needed. It is built from the Site URL in Settings › Server & Email Delivery, so set that first.
Linked playersHow many players have this provider linked
New playersThe sign-up mode: Default: … (the provider’s default), or an override you choose

Each provider also has Plugin settings (a link to the owning plugin’s settings, when it has one) and Test sign-in. On narrower screens each provider is shown as a card with the same information.

The sign-up mode (New players) decides what happens when someone without an account signs in. A change is saved as soon as you pick it:

ModeBehaviour
Automatic (create the account at once)Create the account at once when nothing is missing; otherwise show the complete-profile step
Ask the player to complete their profileAlways show the complete-profile step
Link only (no new accounts)Never create accounts; only players who already linked the provider can sign in

Test sign-in runs the provider’s sign-in with your own account at the provider and shows what the provider returned (id, name, email, whether the email is verified). Nothing is created or linked. Use it after setting up a provider. It is unavailable while the provider is disabled.

Mobile redirect allowlist. The mobile app receives sign-in results on poker://auth/callback, which is always allowed. A white-label app with another deep link needs its exact URI added under Allowed redirect URIs, one per line; click Save allowlist to save. Matching is exact. An entry is either the app’s own scheme (myapp://auth/callback) or an https:// link whose host is your Site URL’s host (Settings › Server & Email Delivery), for an app that claims links on your site. Anything else is refused when you save, including http://, https:// on another host, and browser schemes such as javascript:, data:, blob: or wss:. If the Site URL moves to another host later, its old https:// entries stop working until you update them.

Viewing this page needs the settings:view feature (a1 and up) and saving needs settings:edit (super admin, a), as for the other settings pages; group feature overrides apply (see Groups and Permissions). An admin who can only view sees the page read-only ("Only administrators who may edit settings can change these."). Both need an active admin session, and every change is written to the admin audit log. The API is GET /api/v1/admin/auth/providers and GET/PUT /api/v1/admin/settings/auth-providers (routes in src/api/routes/admin/auth-providers.routes.ts).

The same permissions cover the admin pages of login-provider plugins (any plugin with the auth:provider capability, such as the Social Login plugin’s admin page): core requires settings:view for their reads and settings:edit for every change, and the Social Login page is read-only for an admin who can only view.

Players › Linked Accounts

Players › Linked Accounts (/admin/linked-accounts) lists every sign-in identity linked to a player account: the player and their email, the account’s status (Active, Blocked or Frozen), the provider (marked Inactive when the provider is no longer available), the provider-side name and email, when it was linked and when it was last used to sign in. Filter by provider, search by username, email or provider account, and page through the results (50 per page). The search, filter and page are kept in the page URL. Click a row to open the player on Players › Users.

Unlink removes an identity from a player. You must give a reason (Reason (required)); confirm with Unlink and sign out. Unlinking:

  • signs the player out everywhere (all sessions and refresh tokens are revoked),
  • writes an admin audit record with the provider, the provider-side id and name, and your reason,
  • works even when it was the player’s only way to sign in. Such a player can get back in with a password reset if the account has a real email address.

The user drawer (Players › Users, open a player) has the same list, including how each identity was linked, and Unlink under Sign-in methods on its Sign-in & security tab.

Listing needs the users:list permission and unlinking needs users:edit (see Groups and Permissions). An a1 admin cannot unlink identities from an a admin account. The API is GET /api/v1/admin/auth/identities, GET /api/v1/admin/users/:id/identities and DELETE /api/v1/admin/users/:id/identities/:provider (routes in src/api/routes/admin/auth-identities.routes.ts).

Security notes

  • A password reset, or an admin setting the player’s password, removes any provider that was linked while the account’s email address was still unconfirmed. This stops someone from creating an account with another person’s email address and keeping access after the real owner takes it over. A player who typed their own address at sign-up simply links the provider again under Settings → Sign-in methods.
  • The Sign-in Method Linked system email (Site & Content › System Emails) tells players when a provider is added to their account. Leave it on.
  • See Security and the developer security guide for the full rules.
Try the live demo Pricing

Have questions about Poker Engine? We reply fast.