Pular para o conteúdo

Application rules

The global policy decides whether a user may sign in. Application rules decide how an allowed sign-in is served: whether MFA is asked, and what the application receives on success — RADIUS reply attributes, SAML attributes, OIDC claims or Verify API answer attributes. Application rules have no Allow or Deny.

Open an application under Access ▸ Applications and go to its Rules tab.

  • Each application has one ordered list of rules, evaluated top to bottom; the first matching rule wins.
  • The list always ends with the application’s Default rule. It has no conditions and no validity, and cannot be deleted, moved or disabled — only its MFA switch, attributes and description can change. A rule list with no other rules simply means every allowed request gets the Default rule.
  • Application rules are reached only after a global Allow. When the global policy denies, they are not evaluated at all.
  • Disabled rules are skipped.

A new application starts with a Default rule that has MFA on and the attributes its template recommends (if any).

An application rule has the same conditions as a global rule, minus Application:

ConditionMatches when
Whothe user is in any of the selected user groups (or Any)
Sourcethe end user’s IP is in any of the selected network objects (or Any)
Countrythe end user’s IP is located in a country of any selected country list (or Any)
Whenthe time is inside the selected time range (or Any)
Validitythe current time is between Valid from and Valid until

Every condition must match; inside a condition any item matches. If the application’s device does not send the end user’s address, the Source card is locked to Any (“This device does not send the client IP — Source can only be Any.”) and a Country condition sees every request as Unknown.

A rule’s Require MFA switch decides whether users it matches complete MFA. The effective MFA is:

application Settings Require MFA AND the matched rule’s Require MFA

So the application-wide switch in the Settings tab wins: while it is off, no rule asks for MFA, and the rules’ MFA switches are shown greyed with “MFA is disabled for this application in Settings”.

Typical uses of a rule with MFA off:

  • Service accounts — a monitoring account that logs in to switches over RADIUS, in its own group.
  • Trusted network — staff on the internal management network skip the second factor; everyone else gets it.

The Attributes block of a rule holds what is sent to the application when the sign-in succeeds. Its title follows the application’s protocol:

ProtocolBlockWhere the values go
RADIUSReply attributesIn the Access-Accept, in the order listed. The same attribute may repeat. No attributes = a plain Access-Accept.
SAMLSAML attributesAdded to the assertion. A name given several times = several values. A row of the application’s Settings → Attributes with the same name is replaced.
OIDCClaimsAdded to every id_token and the userinfo answer, whatever scopes the client asks for. A name given several times = a list.
Verify APIAnswer attributesReturned in the attributes object of an allow answer. A name given several times = a list.

Use Add from the template to pick from the attributes the application’s template suggests, or Custom attribute to add any other. For RADIUS, a custom attribute comes from the RADIUS dictionary (standard attributes and vendor-specific ones), and its value is checked against the dictionary type. For SAML, OIDC and the Verify API, template attributes a rule leaves out are still sent with their template default.

Values may use the template’s placeholders, filled in when the answer is sent.

Examples:

DeviceGroupAttribute
FortiGate VPNVPN adminsFortinet-Group-Name = vpn-admins
Cisco IOS XENetwork adminsCisco-AVPair = shell:priv-lvl=15
MikroTikNetwork adminsMikrotik-Group = full
Grafana (OIDC)DevOpsclaim role = Admin
  1. On the Rules tab click Add rule, or use a row’s insert actions to place it.

  2. Give it a name (a suggestion is offered from the groups, sources, time range and MFA setting), an optional description, and leave it Enabled.

  3. Set Require MFA on or off.

  4. Under the match conditions, switch off Any where you need a condition and pick the objects.

  5. Add attributes if the application needs them, then save. The rule is saved immediately from the editor.

  6. Drag rows to reorder. The Default rule always stays last.

Use the policy tester to see, for a given user, address and time, which global rule allows, which application rule matches, whether MFA is asked, and exactly what would be sent to the application.

Groups, network objects, country lists and time ranges referenced by application rules cannot be deleted; the refusal lists the rules together with their application. Deleting an application deletes its rules with it.