How Sign-In Is Evaluated
Every sign-in to Zetect passes through the same steps: find the user, check lockout, score the risk, pick an auth rule, check the first factor, ask for a second factor, then start a session. Each step is set on a different Authentication page.
How it works
- Find the user. The user enters their login ID. Zetect looks it up in the attribute set as Login ID Attribute in General Configuration. An unknown login ID fails as invalid credentials.
- Check lockout. A locked account can't sign in until it unlocks. Lockout comes from the Global Auth Policy, or from a Lock user action in Identity Security.
- Score the sign-in. Behaviour Risk adds the points of each sign-in signal that fires, such as a new device or a new location, and gives the sign-in a risk level: LOW, MEDIUM, HIGH or CRITICAL. A signal can be skipped or limited by a network filter.
- Pick an auth rule. Enabled auth rules are checked from top to bottom against the user's attributes, groups and the sign-in risk level. The first match wins. The Fallback rule catches everyone else.
- Check the first factor. The rule's 1st Factor is an authentication provider:
- Zetect Store checks the password against Zetect.
- LDAP checks the password against the directory through your agent.
- External IDP redirects the user to the identity provider over SAML.
- No provider means no password. The user signs in with username plus a one-time code from the 2nd Factor.
- Ask for a second factor. If the rule has 2nd Factor factors, Zetect offers those the user can use, and the user chooses one. See Which factors a user is offered.
- Start a session. Zetect issues tokens and a session with the lifetimes and session policy in the Global Auth Policy.
Password policies aren't checked at sign-in. They apply when a password is set or reset.
Which factors a user is offered
Only factors turned on under MFA Factors can be added to a rule. At sign-in, a factor is offered only if the user can use it:
| Factor | Offered when |
|---|---|
| The user has a value in the email attribute. | |
| SMS | The user has a value in the mobile attribute. |
| Authenticator | The user has enrolled an authenticator app. |
| Biometric | The user has registered a passkey or security key. |
If the rule asks for a second factor and the user can use none of its factors, sign-in stops. Users enrol from the Security page of the portal. See Managing Sign-In Security.
Key terms
- Condition group
- A set of conditions in an auth rule. The group matches if any of its conditions is true. Groups are joined with AND or OR.
- Sign-in risk level
- The level Behaviour Risk gives a sign-in. An auth rule's Risk Level condition matches the exact levels you choose.
- Lockout
- A temporary block after too many wrong passwords or codes. It ends after the unlock time.
Example
Your tenant has three rules, in this order:
| Rule | Conditions | 1st Factor | 2nd Factor |
|---|---|---|---|
| High risk sign-in | Risk Level is HIGH or CRITICAL | Corporate AD | Biometric |
| AD users | Source equals AD | Corporate AD | Authenticator, Email |
| Fallback | Everyone not matched above | Zetect Store | None |
Priya, an AD user, signs in from her usual laptop. Her sign-in scores LOW, so High risk sign-in doesn't match and AD users does. She enters her directory password, then chooses Authenticator. The next week she signs in from a new country and the sign-in scores HIGH. Now the first rule matches, and she must confirm with her passkey.
Limits and defaults
- Only the first matching enabled rule applies. The Fallback rule can't be moved, deleted or turned off, and signs in with the Zetect Store by default.
- When the 1st Factor is an external IdP, Zetect doesn't ask for the rule's 2nd Factor after the IdP returns. Set MFA up in the IdP.
- An external IdP signs in only users who already exist in Zetect.
- LDAP sign-in needs a registered agent. Zetect waits up to 30 seconds for the agent's answer.
- Attribute conditions ignore case.
