Configure protection
Read and change settings withGET and PATCH on protection/ in your application’s Authentication management API, or from the console.
enabled and breached_password_check are false by default. The modes above are the defaults once you turn protection on.
Policies
The
vpn and travel policies use Didit’s IP analysis. If that lookup is unavailable, the attempt continues; a sign-in never fails because of it. The location for travel updates only after a completed sign-in.
Brute force and lockout
Thebrute mode decides what happens after 5 failures:
- Block: the person must reset their password before they can sign in again.
- Challenge: the account is locked for 15 minutes, and the next attempt needs an extra proof.
- Off or Log: no lock.
Bot score and device signals
Send device signals on runtime calls with these headers. The hosted pages send them for you.
These signals are context for a decision, not proof of identity. They also travel with each sign-in event, where rules can read
event.device.bot_score.
AUTOMATION_FRAMEWORK_DETECTED is a different check. It is an IP and device analysis warning on verification sessions, raised when the verification SDK reports a browser automation framework. It does not run at sign-in. At sign-in, automation is caught by the bots policy above.Challenges
A challenged attempt returns this instead of a sign-in code:POST protection/complete/:
{"challenge", "method": "email_code", "code"}with the 6-digit code sent to the person’s email, or{"challenge", "method": "passkey", "response"}with the WebAuthn response.
403 {"error": "protection_factor_unavailable"}.
Breached passwords
Withbreached_password_check: true, Didit checks new and reset passwords against known breached passwords. The password itself is never sent anywhere. A breached password is rejected with password_breached. At sign-in, a breached password counts as a stuffing match. If the check is unavailable, the password is accepted.
Attack mode
Turn on attack mode during an active attack:POST protection/attack-mode/with{"duration_hours": 1}(or6or24) returns201.DELETE protection/attack-mode/ends it early. It also ends on its own after the duration.
- every sign-up and sign-in must pass a passkey challenge. An email code is not accepted. New sign-ups and people without a passkey cannot finish until attack mode ends.
- a sign-up from a VPN, Tor or data-center network is blocked.
Rate limits
Every runtime route is limited per IP, per application:
Over the limit, the call returns
429. Respect a Retry-After header when one is sent. Sign-in attempts are also limited per minute: 60 per IP, 15 per account, 30 per device, 3,000 per application, and 20 SMS or WhatsApp code requests per phone-number prefix. Token refreshes have an application bucket of their own, 6,000 a minute, so refreshes never use up your sign-ins.
Events
Each decision is recorded as an authentication event:risk_logged, attempt_challenged, attempt_blocked, challenge_passed, challenge_failed, attack_mode_started and attack_mode_ended. The event shows which policy matched.