Tenant Security Settings

On this page

The Security tab sets Login API authentication, IP access control, CAPTCHA, blocked registration domains, client risk signals, and rate limits for the Tenant. An Application can override the Login API settings and the access control list on the Application Security tab. Every Application in the Tenant shares the other settings. To open the tab, navigate to Tenants , click on a Tenant, and click Security .

The Login API, access control list, and CAPTCHA settings on the Security tab of the Tenant form.
The Login API, access control list, and CAPTCHA settings on the Security tab of the Tenant form.

Login API Settings#

These settings apply to the Login API. The settings don't affect OAuth authentication.

Require an API key
  • Optional

Whether a Login API request without an applicationId requires an API key.

When the request includes an applicationId, the Application setting takes precedence. In almost all cases, leave this setting enabled.

Login validation lambda
  • Optional
  • Available since 1.53.0

The lambda that FusionAuth runs during login to perform custom validation.

Access Control Lists Settings#

Enterprise plan required

This feature requires an Enterprise plan.

Access control list
  • Optional

The IP access control list that restricts access by IP address to the FusionAuth hosted login pages. For example, the list can allow only specific IP addresses to reach authentication pages, such as login and forgot password, for every Application in the Tenant.

When an Application in the Tenant sets an Access control list, the Application value overrides the Tenant value for that Application.

CAPTCHA Settings#

Enterprise plan required

This feature requires an Enterprise plan.

When you enable CAPTCHA, several theme templates support CAPTCHA. To control CAPTCHA on each template, use the theme template variables. To show an invisible reCAPTCHA badge on the page, see Invisible reCAPTCHA.

Enable CAPTCHA
  • Optional

When enabled, FusionAuth adds a CAPTCHA challenge to form submissions on the FusionAuth themed pages, to check that a human submits the form.

Method
  • Required

The CAPTCHA service. The values are Google reCAPTCHA v2, Google reCAPTCHA v3, hCaptcha, and hCaptcha Enterprise.

This field is required when Enable CAPTCHA is on.

Site key
  • Required

The site key for the CAPTCHA service.

This field is required when Enable CAPTCHA is on.

Secret key
  • Required

The secret key for the CAPTCHA service.

This field is required when Enable CAPTCHA is on.

Threat score threshold
  • Optional

The threat score threshold for the CAPTCHA service. When the CAPTCHA service doesn't use a threshold, FusionAuth ignores the value.

Device Trust Settings#

Device trust duration
  • Required
  • Available since 1.30.2

The number of seconds that FusionAuth trusts a browser after the user passes a CAPTCHA challenge. After this time, the user must complete CAPTCHA again. The value must be greater than 0. For more information, see When FusionAuth Skips CAPTCHA.

Blocked Domains Settings#

Enterprise plan required

This feature requires an Enterprise plan.

The blocked domain settings on the Security tab of the Tenant form.
The blocked domain settings on the Security tab of the Tenant form.
Blocked domains
  • Optional

One or more email domains, one per line, that can't use self-service registration. For example, enter your company domain, piedpiper.com, to keep employees off the self-service registration form. The same entry stops end users from creating an account with a company email address.

FusionAuth applies the list to every Registration API request and every self-service registration page for every Application in the Tenant.

The client risk and rate limit settings on the Security tab of the Tenant form.
The client risk and rate limit settings on the Security tab of the Tenant form.

Client Risk Configuration#

Available since 1.68.0
Enterprise plan required

This feature requires an Enterprise plan.

Customize risk signals
  • Optional

When enabled, you can choose which risk signals count toward the composite risk score. MFA policies and the MFA requirement lambda can use the score. FusionAuth leaves a disabled signal out of every risk calculation. When you disable every signal, FusionAuth sets the risk score to HIGH.

Blocklisted IP
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the IP address of the client appears on a blocklist.

Bot detected
  • Type: Boolean
  • Optional
  • Defaults to true

Detects bot interactions with the browser window.

Dormant account
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the user hasn't logged in for a long time.

Dormant password
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the user hasn't changed the password for a long time.

Impossible travel
  • Type: Boolean
  • Optional
  • Defaults to true

Tracks the geographic location of login attempts. FusionAuth flags a login as high risk when the login occurs sooner than a person could travel from the previous location to the current location.

Recent identity change
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the login Id of the user changed recently.

Recent password change
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the password of the user changed recently.

Suspicious user agent
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether FusionAuth flagged the user agent of the client as suspicious.

Unrecognized device
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the request comes from an unrecognized device.

Untrusted device
  • Type: Boolean
  • Optional
  • Defaults to true

Checks whether the request comes from a device that isn't in the trusted device list of the user.

Rate Limit Settings#

Enterprise plan required

This feature requires an Enterprise plan.

Rate limitLimiting how many times a user or client can perform an action in a period of time, to slow down attacks and abuse. settings limit how many times a user can attempt an action within a time period. When a user exceeds the limit, the action is unavailable until the time period passes without a failed attempt. FusionAuth evaluates and enforces each limit per user.

The tab lists the following actions:

  • CIMD client registration
  • Failed login
  • Forgot password
  • Passwordless login
  • Resend email verification
  • Resend phone verification
  • Resend registration verification
  • Send passwordless email
  • Send passwordless phone message
  • Send two-factor

The Passwordless login action limits how many times a user can submit a passwordless one-time code. The limit applies only to Applications that use the Form field passwordless strategy. After the user reaches the limit, FusionAuth rejects further attempts, including the correct code.

You can combine the Failed login action with the Failed Authentication Settings. While a user exceeds the rate limit, FusionAuth denies login requests and skips the login flow. FusionAuth increments Failed attempts only for requests that the rate limit doesn't block.

Available since 1.70.0

The CIMD client registration action limits how many new clients each user can register through the CIMD domains of the Tenant. Logins with a client that is already registered don't count toward the limit. When a user exceeds the limit, the login fails and FusionAuth doesn't register the client. FusionAuth writes an Information entry to the Event Log with the user and the client_id URL of the client. FusionAuth also writes an Error entry with the reason code rateLimited.

Each action has the following fields:

Action

The action to rate limit.

Enabled

When enabled, FusionAuth rate limits the action after the user exceeds Limit within Time period.

Limit

The number of attempts allowed within Time period before FusionAuth rate limits the action. A rate limited action doesn't succeed.

Time period

The window of time, in seconds, that FusionAuth evaluates Limit against.