Skip to content
Workforce IdentityMarkdown

Sign-in modules

The name of every sign-in module, the settings object each one reads, and every setting with its default.

AvailableDashboard and API

Each sign-in method is a module: one check in a sign-in chain. This page lists each module’s names and every setting it reads, for when you write a chain or tune a method.

  • Who can do it: a realm administrator, in a group that holds RealmOwner (Delegated administration). RealmViewer can read the settings.
  • Where: authSettings in the dashboard, under Authentication → Settings, or through the API; each module’s settings and webauthnSettings, today through the API (Call the API shows how to get $CVYUH_SESSION).

A chain and authSettings.authenticators name each method by its module; each module’s settings live on an instance of its own type.

MethodModuleInstanceSettings type
PasskeywebauthnauthwebauthnAuthwebauthnAuthModule
PasswordNativeStorenativeStorenativeStoreModule
Authenticator apptotptotptotpModule
Add a passkeywebauthnregwebauthnRegwebauthnRegModule
Confirm identityconfirmidentityconfirmIdentityconfirmIdentityModule

Adding a passkey runs in the chain webauthnRegChain.

Change one module’s settings on its instance, for example the authenticator app’s:

Terminal window
curl -X PATCH https://foobar.cvyuh.com/api/v0/am/objects/v1/totpModule/totp \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{ "digits": 6, "period": 30 }'

An authenticator app keeps the settings it was set up with: changing the algorithm, digits or period affects new apps only.

WhereSettingWhat it does
authSettingsauthenticatorsWhich modules the realm may run. The list you send replaces the realm’s
authSettingstwoFactorMandatory (true in a new realm), twoFactorSkipDays (30)Whether a second step is required, and how long a skip lasts (0 is for good)
webauthnSettingsrpIdThe domain passkeys are bound to: the realm’s host when it was created with one, otherwise empty, and no passkeys
webauthnSettingsrpName, origins, relatedOriginsThe name users see (the realm’s name when empty), other exact origins under the rpId, and origins on other domains allowed to use it
webauthnSettingsalgorithms, userVerification (preferred), residentKey (required), attestation (none), hints, timeoutSeconds (300)What a passkey ceremony asks for
webauthnAuthModuleauthLevel, authLevelVerified, attemptsPerLogin (3), maxFailuresBeforeDisable (20), counterPolicy (warn)Passkey sign-in
webauthnRegModuleauthenticatorAttachment, recoveryCodeCount (10)Which authenticators may hold a new passkey, and how many recovery codes come with a first factor
nativeStoreModuleauthLevel, invalidCharsThe level a password sign-in gives, and characters a username can’t hold
totpModulealgorithm (SHA256), digits (6), period (30), issuerWhat a new app is set up with
totpModulestepsInWindow (1), maxDriftSteps (5), allowSha1Fallback (true)How much clock difference is tolerated, and whether an app that ignored the algorithm is accepted
totpModuleattemptsPerLogin (3), maxFailuresBeforeDisable (20), recoveryCodeCount (10)How guessing is bounded, and how many recovery codes
confirmIdentityModuleapp, passkeyThe app and passkey instances it answers with; one left out isn’t offered

Values in brackets are the defaults.

Every default is in the Settings table above, in brackets. The limits a user meets, such as tries per sign-in and when a factor is disabled, are summed up on Sign-in methods.

SymptomCauseFix
Deleting a module instance answers 400A chain still names itTake it out of every chain first
A chain naming a module is refusedThe instance doesn’t existCreate it, or name an existing one
A method never runsIt isn’t in authenticatorsRead authSettings, and send the list back with it added

A change to a module’s settings is recorded as UPDATED or PATCHED in Audit → Config (Change history). Each time a module runs in a sign-in, it writes a MODULE_COMPLETED record with how it went (Audit → Authentication).