Skip to content

Security policies

Password and username rules, lockout, e-mail confirmation, new-address approval, network restrictions and suspensions — what each does and where to set it.

An account signs in to every client of its realm with the same credentials, so the rules about those credentials — usernames, passwords and lockout — are set once per realm. Who may enter a particular app, and from which networks, is set per client. Decisions about one person, such as approving an address or suspending them, are made per account.

PolicyScopeWhere in the console
Usernames, passwords, lockoutRealmRealms, the Account rules section of the realm’s page
Who may sign in, approval channelClientClients, the Configuration section of the client’s page
Network restrictionClientThe client’s page, Security section, Network
New-address approvalsAccountIP Approvals
SuspensionsAccountSuspensions

Changes to the account rules apply from the next sign-in or password change. The hosted screens read the same rules, so the hints next to a password field always match what the server enforces.

Usernames

RuleEffect
Sign in withWhat people type on the sign-in screen to say who they are: Username only (the default), Username or email (the username is looked up first, so an account whose username looks like somebody else’s address is still found by its own name) or Email only. Every screen and grant that finds an account by what was typed follows it: sign-in, device verification, the passkey hint, the password grant and password recovery. Accepting the e-mail needs Unique Email Required.
Allowed Username CharactersThe characters a username may contain. Empty allows any character.
Unique Email RequiredNo two accounts of the realm may share an e-mail address.
People can delete their own accountOffers Delete my account in the account portal. Off by default.

Password rules

The rules apply everywhere a password is written: an account created by an administrator, a password change, a reset, a password added to an account that came from an identity provider.

RuleAccepted values
Minimum Length1 to 128
Unique CharactersHow many different characters; at most the minimum length
Special, Lowercase, Uppercase, DigitsOn or off, each
Block breached passwordsOn or off
Block Password Reuse and Passwords Remembered1 to 24 remembered; 3 by default
Require Password Renewal and Renewal Every (days)1 to 3,650 days; 90 by default

Breached passwords

With Block breached passwords on, a new password is checked against the Have I Been Pwned database using k-anonymity: only the first five characters of the password’s SHA-1 hash leave Authio, never the password. If the lookup does not answer within three seconds, the password is accepted rather than blocking the person.

Reuse and renewal

  • Block Password Reuse refuses a new password equal to any of the last Passwords Remembered. The current password always counts as recent.
  • Require Password Renewal makes passwords expire after Renewal Every (days). After the right password is typed, a person whose password expired is taken to renew it: the screen explains why and sends a reset link to their e-mail.

Lockout

RuleEffect
Max Failed AttemptsFailures in a row before the account locks. At least 1.
Lockout DurationHow long the lock lasts, as HH:MM:SS, for example 00:05:00.
Lockout StatusWhether lockout applies to new accounts.

A wrong password and a wrong e-mail code both count. A locked account is refused even with the right password; the sign-in screen states the realm’s own duration and number of attempts, and suggests resetting the password to get in sooner. In the console, the user’s page shows Locked out until with the time.

E-mail confirmation

An account cannot sign in until its e-mail address is confirmed, whatever the way in: password, passkey, push or identity provider. The exception is an account without a password created by an identity provider, whose address is confirmed when the provider is trusted and stated it verified it.

  • When an administrator creates an account, the Email Confirmed switch skips the confirmation e-mail. Left off, the person receives a link and cannot sign in until they follow it.
  • An administrator resends the link with Resend confirmation e-mail on the user’s page.
  • A person who tries to sign in unconfirmed is offered Send the confirmation email again — only after typing the right password. See Account self-service.

Who may sign in to a client

Accounts belong to the realm, not to a client. Each client decides which of them it admits with Restrict to linked accounts, under Who may sign in in its Configuration:

SettingWho gets in
On (default)Only accounts created through this client or granted access to it. Others are refused with “No access to this application”.
OffAny account of the realm. It is linked to the client on its first sign-in.

Grant or remove access in the Users & Consumers band of the Access section of the client’s page, which also lists who holds it. An account whose status is not Active cannot sign in anywhere, and changing the status ends all its sessions.

New-address approval

Each account may only be used from addresses it has used before or that someone approved. The first address an account signs in from is trusted automatically and becomes its reference. After that, a sign-in from an address the account has never used is held, even with the right password, until someone answers “was this you?”. This protects against leaked credentials whether or not the person enrolled a second factor.

  1. The sign-in waits

    The screen shows Confirm this location, says what it is waiting for, and continues by itself the moment the address is approved — without asking for the password again.

  2. The account holder is asked

    Through the client’s approval channel (below): an e-mail titled Was this you? with Yes, this was me and No, block this address, valid for 24 hours, or a request in the Authio app with the number shown on the screen. Opening the e-mail link decides nothing; only the button does, so mail scanners that follow links cannot approve anything.

  3. Administrators can answer too

    Operators are notified, and IP Approvals lists every held address of the realms in scope with Approve, Block and, for an approved one, Revoke. An address the holder approved, or that was trusted as the account’s first, also offers Approve as administrator, the approval a client restricted to listed networks asks for. The Activity section of each person’s page shows the addresses of that account, under Sign-in addresses.

An address the holder refuses stays refused for good, and operators get a critical notification: whoever tried knows the password. A refused address never raises a new question, so it cannot be used to flood the holder with e-mails. Nothing is deleted: revoking turns an approved address into a refused one.

The same decisions are in the Admin API, under /api/v1/admin/realms/{realm}/ip-approvals; on Node.js, @hyper.authio/admin calls them as admin.userAllowedIp.getAll, getSummary, getByUser, approve, reject and revoke, and the account-wide reads below as admin.pendingIpApproval.getEstate, getSummary and getPendingCount. A decision takes an optional body { "reason": "…" }, up to 500 characters, kept in the change trail:

EndpointPermissionWhat it does
GET /ip-approvalsuser:readThe addresses recorded in the realm, most recently seen first. status (Pending, Approved or Rejected) and clientId narrow them.
GET /ip-approvals/summaryuser:readThe realm’s figures, over windowDays and narrowed by clientId.
GET /ip-approvals/users/{userId}user:readThe addresses of one account.
POST /ip-approvals/{approvalId}/approveuser:writeApproves the address; one already approved answers 409.
POST /ip-approvals/{approvalId}/rejectuser:writeRefuses the address, for good.
POST /ip-approvals/{approvalId}/revokeuser:writeTurns an approved address into a refused one.

GET /api/v1/admin/ip-approvals, with its /summary and /pending-count, reads the same across every realm you administer.

Approval channel

The Approval channel, in the client’s Configuration, decides how the holder is asked about a new address and about a password reset:

ChannelHow the holder is asked
The Authio appA request on the paired phone, matching the number on the screen. An account without a phone gets the e-mail.
E-mailAlways a link in the inbox, never the phone.
BothThe phone, when there is one, and the e-mail as well; whichever is answered first decides.

The channel does not change the second factor: the sign-in code still goes to the inbox and to every paired phone.

Restricting a client to known networks

A client can admit sign-ins only from the networks you list — an office, a VPN gateway, CI runners. The list sits in the Security section of the client’s page; to change it, go to Network there, then save the Network group of the bar:

ModeEffect
Open to everywhere (default)Any address, with each account still asked about addresses it never used.
Listed addresses onlyOnly the listed addresses, or one an administrator approves. The holder cannot approve their own address, and the first-address trust does not apply.
  • Entries are IPv4 or IPv6 addresses or CIDR blocks such as 203.0.113.0/24, each with a label.
  • You can build the list while the client is still open and switch to restricted later. Restricting with an empty list is refused.
  • Removing an address does not end sessions already open from it.
  • The restriction applies to people signing in — the hosted login, the password grant and device approval — not to machine identities at the token endpoint.

Suspensions

A suspension takes away all or part of a person’s access for a period, without deactivating the account. It is written through one of the clients the person is linked to, whose webhooks are told and whose scopes a partial suspension picks from, and once written it holds the person in every client of the realm. Create one with New suspension in Suspensions, or from the Suspensions section of the person’s page in Users: both open the same screen, with Who is suspended (when you start from the list), What it withholds, Period, Sessions & tokens and Reason as its sections, then a Preview. The level decides what it withholds:

LevelWhile it is in force
Full suspensionNo sign-in, no new tokens, and tokens already issued stop working.
Partial suspensionThe person signs in, but the scopes you pick are withheld from every token.
Revoke permissionsThe person signs in, but the roles you pick, or all of them, stop reaching their tokens.
  • Choose what happens to open sessions: Keep sessions open, Sign out now or Sign out when it starts. A full suspension always signs the person out.
  • A reason is required. Show the reason on the sign-in screen is off by default, because the reason is written for reviewers.
  • Access is decided from the dates at every check, so a suspension bites from its first second. Several suspensions add up, and the sign-in screen states the latest end.
  • A suspension is never edited: to change it, lift it with a reason and create another. Both stay in the history.
  • Lifting has a page of its own, Lift this suspension, opened by Lift suspension on the suspension’s page or on the person’s Suspensions, or by Lift on its row in Suspensions. It shows what is being lifted and asks why before you confirm.

Suspensions are in the Admin API too, on the person, under /api/v1/admin/realms/{realm}/clients/{client}/users/{userId}/suspensions. On Node.js, @hyper.authio/admin calls them as admin.userSuspension.getAll, getById, create and lift (see The Admin API from the libraries); on .NET, where IAuthioAdminClient has no method for them, an HttpClient given AddAuthioAccountCredential() calls the routes:

EndpointPermissionWhat it does
GET /suspensionsuser:readEvery suspension ever written against the person, lifted and expired ones included.
GET /suspensions/{suspensionId}user:readOne suspension.
POST /suspensionsclient:updateSuspends the person. level is Full, Partial or PermissionsRevoked; reason (1 to 1,024 characters) is required; reasonShownToUser, startsAt (now when left out) and endsAt (until lifted when left out); sessionTermination is AtStart (the default), Immediately or None; restrictedScopes for a partial one; revokesEveryRole or revokedRoleIds for a revocation. An empty or past period, a full suspension that keeps sessions open, or a scope or role that withholds nothing answers 400.
POST /suspensions/{suspensionId}/liftclient:updateLifts it with a required reason. One already lifted or over answers 409.

GET /api/v1/admin/suspensions/overview (user:read) is the calendar of Suspensions: who is held across your account and over which days, without the reasons, between from and to (two weeks back and four weeks ahead when left out) and narrowed by realm and client.

Node.jsTypeScript
await admin.userSuspension.create({
  realm: 'acme',
  client: 'acme-web',
  userId,
  body: {
    level: 'Full',
    reason: 'Chargeback under review',
    endsAt: '2026-11-05T00:00:00Z',
    sessionTermination: 'AtStart',
  },
})

Next steps