6a9b694b featured anyx admin authenticationauthentication policy

Authentication policy

The Authentication Policy page (route /auth-issuer-policy) is the global control for what happens during the authentication flow: which multi-factor authentication methods are allowed, how long credentials live, which preset security posture to apply, and the ordered rules that decide whether a user may sign in. Authorisation happens per application, but authentication is global, and this page is where it is governed.

Purpose

Authentication policy applies to every sign-in through your issuer. It has four parts:

  • Multi-factor authentication methods: which second-factor methods are enabled (time-based challenge apps and WebAuthn).
  • Credential policy: the maximum lifetime for credentials, globally and per resource type.
  • Authentication rules: preset security postures (Default, Permissive, Strict) that you can configure and apply, plus a default action for sign-in attempts that match no rule.
  • Policy groups and rules: named groups of ordered rules. Each rule has conditions and an action, and the first rule whose conditions match decides the outcome.

For organisations that inherit their issuer from a parent (a sub-organisation without a unique issuer), the page shows Inherited Policy: Yes and the controls are disabled.

Why use it

  • Enforce multi-factor authentication consistently across every application, including legacy ones (see Identity and authentication).
  • Set a security posture in one step with the Default, Permissive, or Strict presets.
  • Write precise rules, for example deny sign-in from a specific IP range, require multi-factor authentication for a specific application or group, or allow single sign-on only for certain clients.
  • Limit credential lifetime so stale tokens cannot be used.

When to use it

  • During initial setup, to choose a preset and confirm the multi-factor authentication methods your users can enrol.
  • When your organisation needs a stronger or weaker posture, or a specific rule for a group of users or a client.
  • After a security review, to enforce shorter credential lifetimes.

Prerequisite: permission to administer issuers (an owner or administrator role). The page shows a no permissions message otherwise.

How to use it

  1. Open Authentication > Authentication Policy from the left navigation.
  2. Confirm the Multi-Factor Authentication Methods Enabled checkboxes match what you support: Time based challenge app (a one-time code from an authenticator application) and WebAuthn (a security key or platform authenticator).
  3. Select CREDENTIAL POLICY to set the maximum lifetime for credentials, globally and per resource type.
  1. In the Authentication Rules cards, select CONFIG & APPLY PRESET on a preset to review and apply it. The more menu on a card shows See detailed Information for the preset.
  1. Set the Default Action that applies when no rule matches.
  1. Organise rules into policy groups with ADD GROUP, or expand an existing group to manage its rules.

Working with rules

Within a group, each rule has a Rule Name, an Action (for example Authenticate with an identity provider), and a set of conditions. Rules are evaluated in order; the first rule whose conditions all match wins.

  • ADD RULE creates a new rule in the group.
  • ADD CONDITION opens the condition wizard.
  • Tick conditions and select DELETE CONDITIONS to remove them.
  • DELETE RULE removes the whole rule.
  • DELETE GROUP removes the group and its rules.

Creating a condition

Select ADD CONDITION to open the Configure Policy Condition wizard.

Choose condition type. Select the condition type: Client id, IP in CIDR, Successful Multi-Factor Login, Object attribute, Org id, Upstream identity provider, User has enrolled Multi-Factor method, or User id.

For Object attribute, also choose a field to compare, for example login session user is authenticated or user member of email.

Configure condition details. The wizard shows the chosen condition type and field, then asks for an operator and a value. Operators are equals, greater than, in, less than, not equals, and not in.

Apply and Done. Select Add on the Apply step to save the condition to the rule.

The condition appears in the rule’s condition table. Its row menu offers Configure Condition to edit it.

Fields and controls reference

ControlPurposeRequiredDefaultValid valuesNotes
Inherited PolicyWhether this organisation shares its parent’s policyRead-onlyNoYes or NoYes disables the configuration controls
Time based challenge appEnables time-based one-time codes (for example Google Authenticator, Authy)NoOnOn or off
WebAuthnEnables WebAuthn (USB security key, push to phone, biometric, TPM)NoOnOn or off
CREDENTIAL POLICYOpens the credential lifetime dialogn/an/an/a
Default ActionThe action when no rule matchesYesDeny LoginRequire Second Factor; Deny Login; Allow Login; Authenticate with an identity provider
CONFIG & APPLY PRESETApplies a Default, Permissive, or Strict presetn/an/an/aOpens the preset configuration dialog
ADD GROUPCreates a new policy groupn/an/an/a
ADD RULECreates a new rule in a groupn/an/an/a
ADD CONDITIONOpens the condition wizardn/an/an/a
DELETE CONDITIONSRemoves the ticked conditions from a rulen/an/an/a
DELETE RULERemoves a rulen/an/an/a
DELETE GROUPRemoves a group and its rulesn/an/an/a
Action (rule)The action the rule takes when its conditions matchYesAuthenticate with an identity providerThe multi-factor challenge answer results

Credential policy dialog

ControlPurposeValid values
Global Default Maximum Lifetime (Hours)The fallback lifetime for credentials when no specific scope is setA number of hours
Ssh, Shares, Applications, Databases, Desktops, NetworksPer-resource-type maximum lifetimesA number of hours per scope

Preset configuration dialog

ControlPurpose
Multi factor required time interval (time in seconds)How often multi-factor authentication is required
Sessions valid for (time in seconds)How long a session lasts
Allow shared sessions between applicationsWhether a session carries across applications
Does not require multi factor authentication from providersProviders exempt from multi-factor authentication (Select Providers)
Always require multi factor authentication for applicationsApplications that always require multi-factor authentication (Select Applications)
Always require multi factor authentication for groupsGroups that always require multi-factor authentication (Select Groups)
ApplyApplies the preset values to the policy

Dialogs and popups

  • Credential policy: the CREDENTIAL POLICY button opens the credential lifetime dialog described above.
  • Auth preset: CONFIG & APPLY PRESET opens the preset configuration dialog; its more menu opens the preset details information dialog, which has a Config & Apply Preset button that leads on to the configuration dialog.
  • Policy condition: ADD CONDITION opens the four-step condition wizard described above.

Configuration versus diagnostics versus confirmation

  • Configuration: the multi-factor authentication methods, credential policy, presets, default action, and the policy groups and rules.
  • Diagnostics: the inherited policy indicator is informational; there are no live diagnostics on this screen.
  • Confirmation: DELETE RULE and DELETE GROUP remove policy immediately. CONFIG & APPLY PRESET overwrites the policy with the preset’s settings, so review the preset dialog before applying. Changes to authentication policy affect every user sign-in.

Pagination and async behaviour

  • There is no table with paging on this screen; rules are organised into expandable groups.
  • Policy changes save asynchronously. After applying a preset, adding a rule, or changing the default action, wait a few seconds and reload to confirm. Sign-in behaviour changes as the policy propagates to the identity-aware proxy.

Troubleshooting

  • The controls are disabled: the organisation has an inherited policy (Inherited Policy: Yes). Give it a unique issuer to configure its own policy (see Sub-organisations).
  • A rule is not having an effect: check the rule’s order (rules are evaluated top to bottom) and its conditions. Use Configure Condition to verify each condition’s operator and value.
  • Multi-factor authentication is not offered: confirm at least one method is enabled here, and that the user has enrolled a method. See Multi-factor authentication.
  • Sign-in is denied unexpectedly: review the Default Action and the policy groups. The default in the demo organisation is Deny Login, so rules that allow authentication must match before the default applies.
  • I want to undo a preset: re-open the preset dialog and apply a different preset, or edit the individual rules.

See also

Web guide