Skip to content

Admin

Alter Accounts

Let Alter host sign-in for the application end users: Google, email and password, emailed codes, two-factor authentication and user management, with no identity provider to set up.

Every feature that involves a person (Wallet sign-in, approvals, delegating to an agent, managed-secret Connect) needs the app to know who its end users are. An app can bring its own identity provider (Connecting an Identity Provider), or it can let Alter host sign-in with Alter Accounts.

Alter Accounts fills the same identity-provider slot. Everything that works with an external provider works the same way with Alter Accounts, and an app with its own provider is unaffected.

Alter AccountsBring your own provider
SetupOne action in the developer portal or the CLICreate a tenant and an OIDC application at the provider, then paste its issuer and keys
Sign-in pageHosted by Alter at the app’s own address, with the app’s name, logo and coloursThe provider’s page
UsersEach app has its own users: the same email in two apps is two unrelated accountsThe provider’s directory
User managementInvite, disable, enable, remove, send a password reset and reset 2FA from the Users page or alter end-usersIn the provider
  1. Open the app, then Identity Provider.
  2. Under Alter Accounts, select Set up Alter Accounts.
  3. Pick the sign-in methods, whether 2FA is required, and who may sign up (all can be changed later).
  4. Optionally choose the address label. It becomes the last part of the address, https://<accounts address>/<label>, and cannot be changed later, because it is written into every token and every Google redirect address.
  5. Select Turn on Alter Accounts.
Terminal window
alter identity-providers create --app my-app --alter-accounts \
--methods google,email_password \
--signup anyone

The command prints the app’s sign-in address as issuer and its fixed label. It needs a personal access token with the literal scope dashboard_identity_providers:create (wildcards do not grant it).

An app that already has an identity provider switches to Alter Accounts and keeps its users. On the app’s Identity Provider page, select Manage provider, then Switch to Alter Accounts under Change provider. Choose the settings above and how the current users are matched, then confirm. This is the identity-provider change with Alter Accounts as the new provider: the current provider’s users and groups are kept, their access is suspended until each is matched, and nothing is revoked. It is a dashboard action for organization admins: the CLI and personal access tokens cannot run it, and alter identity-providers create --alter-accounts on an app that has a provider is refused with idp_conflict and a message that names the dashboard.

The current users are not moved to Alter Accounts for them: each one signs up on the application’s address (or you invite them), and their first sign-in is matched to their existing user by the first rule that applies:

  • An uploaded mapping of each user’s id at the old provider to their Alter Accounts user id. The Alter Accounts id exists once the user has signed up, so upload or replace the mapping while the change is open (Edit matching).
  • Email, only if you turn it on. Alter Accounts verifies an address before anyone can sign in with it, so the match needs the email the old provider recorded to be verified too, and it applies inside the window you set. It is off by default because an email is a weaker identifier than a user id.
  • By hand, from the list of waiting users.

The rule that matches a claim carrying the old user id is not offered: an Alter Accounts token never carries a user’s id at another provider. Someone who matches no rule signs in as a new user. Users and groups still waiting can be purged, as with any change.

Groups are not supported by Alter Accounts. It reports no group memberships, so a group from the old provider can never be matched to it, and grants given to a group stop working for good after the switch, along with the delegations made from them and the policies that name the group. If any of the app’s synced groups carry grants or policies, the switch is refused until you acknowledge this: the page lists those groups and asks you to tick that their grants will stop working. The groups are kept waiting, with their grants and policies unchanged, and can be purged like any waiting group. To keep group-based access, stay on an identity provider that supports groups.

If Alter Accounts cannot be installed after the old provider was removed, the page says so and the users stay waiting; turn Alter Accounts on again to finish the switch.

The app works as soon as it is on. There is no test mode. The application keeps using the SDK exactly as with any identity provider: no code changes.

At least one method must be on. Email with password is on by default, and Google too when it can work (Alter’s own Google client is available on the deployment, or the application brings its own). A method turned off explicitly stays off: if that leaves nothing that can work, turning Alter Accounts on is refused with alter_accounts_no_sign_in_method rather than turning another method on. Google needs a working client: when Alter’s own Google client is not available on the deployment, the setup and settings forms say so, and Google can be turned on only with the application’s own client (a save without one is refused with alter_accounts_google_unavailable). The settings carry alter_google_client_available for this. A method that is off is not shown on the sign-in page and a direct attempt to use it is refused.

MethodWhat the end user doesProtections
Email and passwordSigns up with an email and a password, verifies the email, then signs inPasswords are at least 15 characters, or at least 8 when the app requires 2FA for every user (NIST SP 800-63B); breached passwords are refused; the email must be verified before the first sign-in; reset links work once; repeated attempts are rate-limited
Emailed codeReceives a 6-digit code by emailValid for 10 minutes and 5 attempts; works only in the browser that asked for it; a limited number can be sent per account
GoogleSigns in with GoogleWorks immediately with Alter’s own Google client; Google’s tokens are discarded after sign-in

No silent account merging. If someone signs in with Google using an email already registered with a password, the sign-in is refused and the page says how the account signs in. A signed-in user can add another method from their account page.

Using the application’s own Google client

Section titled “Using the application’s own Google client”

With Alter’s client, the consent screen shows Alter Accounts. To show the application’s own name instead, turn on Use your own Google client inside the Google method under Identity Provider → Sign-in (shown while Google sign-in is on):

  1. Create an OAuth client at Google (Web application).
  2. Register exactly the redirect address the portal shows, https://<accounts address>/<label>/api/auth/callback/google.
  3. Paste the client ID and secret into the portal and save. The secret is checked with Google when it is saved: a rejected secret is not saved, and a secret that could not be checked is saved with a notice.

End users can turn on an authenticator app and receive one-time recovery codes. A recovery code works once.

Turn on Require 2FA for every user to make it mandatory. A user without an authenticator must set one up before they can use the application. 2FA is enforced after every sign-in method, including Google and emailed codes. Tokens carry the time of sign-in, so step-up rules that require a recent sign-in keep working.

RuleEffect
Anyone (default)Any person can create an account
Invited onlyOnly email addresses invited from the Users page or alter end-users invite
Listed email domainsOnly addresses at the listed domains, for example example.com

Sign-up, sign-in, code and reset pages give the same answer whether or not an email already has an account, so the pages cannot be used to find out who uses the application.

On the application’s address, an end user can change their email (the new one is verified first), change their password, manage 2FA and recovery codes, sign out everywhere, and delete their account. Deleting the account removes the user’s access in the application, the same way removing them as an administrator does.

Resetting or changing the password, changing the email address, signing out everywhere, and an operator disabling the account or resetting its two-factor authentication each end every link and code emailed to the account before then.

The app’s Users page and alter end-users list show everyone, including people who have not signed in to the app yet: someone who signed up or accepted an invitation but never reached the app is listed as Hasn’t signed in to the app yet, and an open invitation as Invited. They have no grants until they sign in, and the actions below work on them too (an invitation can be resent or removed; if the person accepts it while it is being removed, the removal is refused with invitation_accepted and they appear as a user). Disabling or removing someone holds even against a sign-in already under way: they arrive disabled (a matched earlier user too) or removed, and enabling them again lets them in. A link to their page keeps working after their first sign-in and opens their user record.

The Users page and alter end-users gain these actions for apps using Alter Accounts:

ActionCLIEffectScope for a personal access token
Invitealter end-users invite --app my-app --email person@example.comEmails an invitation (required for Invited only)dashboard_end_users:write
Disablealter end-users disable --app my-app --user <id> --yesSuspends the user’s access in the app, then blocks their sign-indashboard_end_users:write
Enablealter end-users enable --app my-app --user <id>Lets them sign in and restores accessdashboard_end_users:write
Send password resetalter end-users reset-password --app my-app --user <id>Emails a single-use reset linkdashboard_end_users:write
Reset 2FAalter end-users reset-2fa --app my-app --user <id> --yesRemoves their authenticator and recovery codes and signs them outdashboard_end_users:write
Removealter end-users remove --app my-app --user <id> --confirm <email>Deletes the account and revokes the user’s grants. Cannot be undonedashboard_end_users:delete (granted only when typed literally)

Every action is recorded in the app’s audit log, as are sign-ups, sign-ins (successful and failed), and password, email and 2FA changes.

Emails to one address, and from one app, are limited per hour. An invitation or a password reset over that limit is refused rather than sent late: nothing is sent or changed, the Users page says so, and the CLI exits 6 with the error code alter_accounts_email_limited. Try again later.

Sign-in methods, the 2FA requirement, the sign-up rule and the application’s own Google client are changed on the Sign-in tab of the Identity Provider page in the developer portal, with one Save. If someone else saved first, the page says so and offers to reload the settings rather than overwrite them. Turning Google sign-in off never removes a saved Google client: remove it explicitly, or turn Google back on. While sign-up is limited to Invited people only, Invite people sends invitations from the same tab. The Overview tab shows active and suspended users (or that no one has signed in yet), how people sign in, and recent sign-ins. The provider always identifies users by the token’s sub claim (their account id); a request to key it by another claim is refused with alter_accounts_subject_claim_fixed. Its client ID, client secret and audience belong to Alter Accounts too: changing them through the generic identity-provider settings is refused with alter_accounts_provider_field_managed. While Alter Accounts holds the provider, it is removed only by turning Alter Accounts off (or replaced by changing the identity provider): deleting it as an ordinary identity provider is refused with alter_accounts_provider_managed, and nothing is changed. A provider Alter Accounts no longer holds, left by a turn-on that did not finish, is deleted as an ordinary identity provider.

Turning Alter Accounts off deletes every account, session and client secret Alter holds for the app and removes every user’s access in the application. To keep the users, change the identity provider instead, which moves them to the new provider. Both actions are on the Manage provider page (Change provider, and Turn off Alter Accounts in its danger zone), which also shows the fixed label, the client ID and the Google redirect address. They are available in the developer portal only.

Deleting the app or its organization also deletes everything Alter Accounts held for it.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.