Skip to content

Authentication & Session Management

Passwords

When a user is created on the system, their account is assigned a random password which is not recorded or shared with admins. New users will receive a welcome email containing a password reset link they can use to set a password.

Administrative users are unable to set a user's password. Users can change their passwords via their Profile page, or reset them using the password reset feature.

Password Hashing and Cost

All passwords are stored as bcrypt hashes. In v7.3.0 the default bcrypt cost was increased to 13, keeping it in line with recommendations for hardware in 2026. The setting can be changed in the .env if desired:

BCRYPT_ROUNDS=13

When this setting is changed, old passwords will be rehashed using the new cost setting during login - no user involvement is required.

Password Policy

In v7.5.0 a password policy configuration feature was introduced, allowing administrators to implement their own password policy. The policy is enforced in every console command and web form which sets a user's password.

The user's password will also be checked against the policy during a login. If the password no longer meets the policy requirements, the user is forced to change their password using the Reset Password feature before they can log in. This behavior ensures that user passwords are kept up to date with your password policy.

Password Policy Rules

The following rules may be configured via the Settings UI, or via .env settings:

Minimum length

The minimum password length supported by IXP Manager is 8 characters. When making changes to this setting via the Settings UI, the setting has a minimum of 15 unless 2FA is enabled and active for all users - in that case a minimum of 8 characters is allowed.

PASSWORD_POLICY_MINIMUM_LENGTH=32

Maximum Length

The maximum length is hard coded to 72 characters reflecting the maximum length supported by the bcrypt hashing algorithm. It cannot be changed.

Compromised Password check

NIST recommends checking and rejecting passwords known to be compromised. IXP Manager does this using the Have I Been Pwned API which is updated regularly with compromised passwords obtained from various sources. This feature does not share your password with third parties. The website offers this description of the process:

Have I Been Pwned Passwords uses a model called k-anonymity to let you check whether a password has been seen before without ever sending the full password or its complete hash to the service. Instead, your password is hashed locally and only the first 5 characters of the SHA-1 hash are sent to the API. The service returns a list of matching suffixes, and the full comparison happens on your side so the password itself remains private.

Source: haveibeenpwned.com

To learn how this feature works without harming the privacy or security of your password, check out this blog post by Troy Hunt, the creator of Have I Been Pwned.

PASSWORD_POLICY_REQUIRE_NOT_COMPROMISED=true/false

This feature will degrade gracefully if the remote service is unavailable - ie, logins and resetting passwords will still work.

Password Complexity Rules

Note: Password complexity rules such as requiring letters / mixed case / symbols / numbers have been found to lead to weaker, more predictable passwords and is discouraged by NIST. The options are presented in case it helps aligns IXP Manager with your organisations policies.

  • Require Mixed Case: Requires that a password consists of upper and lower case letters. Defaults to disabled.
  • Require Symbols: Requires that a password contains at least one symbol. Defaults to disabled.
  • Require Numbers: Requires that a password contains at least one number. Defaults to disabled.
PASSWORD_POLICY_REQUIRE_MIXED_CASE=true/false
PASSWORD_POLICY_REQUIRE_SYMBOLS=true/false
PASSWORD_POLICY_REQUIRE_NUMBERS=true/false

Default Policy

IXP Manager implements the following NIST recommended policy by default:

Rule Default Value Information
Minimum Length 8 As IXP Manager ships with 2FA, a minimum password of 8 is justifiable.
Maximum Length 72 Static and cannot be changed.
Not Compromised enabled Checks that the password is not compromised.

Session Management

IXP Manager allows users to login and remain logged in for up to 1 hour with a normal session (without activity), or 30 days when using the Remember Me feature - after this they will have to login again. Users may also have and maintain multiple login sessions from different browsers.

To enable such a long-lived session, the user must check the Remember me checkbox when logging in.

Active sessions can be seen (and deleted) via the Active Sessions option in the user's My Account menu (top right of screen).

Session Lifetimes

There are two configurable options here - both in minutes. The first is the session lifetime which is how long a browser session will stay valid since the last activity. The default value is defined in .env as:

SESSION_LIFETIME=60

In other words, your login session (when you do not check remember me) will stay valid for 60 minutes / 1 hour by default. This is 1 hour since the last request - i.e. the session expiry time updates on each request. If you are curious, the browser cookie managing this is called laravel_session by default. This cookie does not have an Expiry/Max-Age configured, so it will be cleared when the browser session ends. The session lifetime is ultimately enforced on the server side.

If the user checks remember me, then a second cookie is sent to and stored on your browser (called remember_web_xxx where xxx references the login software implementation used by IXP Manager). This cookie references an entry in the user's user_remember_tokens database table.

The default lifetime of this remember me session is defined in .env as:

AUTH_TOKEN_EXPIRE=43200

So, your remember me session will last 30 days before you will be forced to login again from a particular browser.

You may notice that the cookie sent to the browser for this has an indefinite lifetime - the expiry is actually controlled by the user_remember_tokens.expires database column.

Two-Factor Authentication (2FA)

Two factor authentication (2fa) strengthens access security by requiring two methods (also referred to as factors) to verify your identity. Two factor authentication protects against phishing, social engineering and password brute force attacks and secures your logins from attackers exploiting weak or stolen credentials.

For the avoidance of doubt, 2fa does not apply to API keys or API requests. Treat your API keys with extreme care.

IXP Manager supports the Time-based One-time Password (TOTP) algorithm specified in RFC 6238. In other words, the standard 2fa system that is supported by most apps such as Authy, Google Authenticator, LastPass, 1Password, etc.

User's can enable, view (and test) and disable 2fa via the My Account -> Profile page. If 2FA is enabled across the organization and a user disables 2FA, they will be forced to set it up again before they can resume using the system.

2FA support in IXP Manager is enabled by default. To globally disable it set the following .env option:

2FA_ENABLED=false

Enforcing 2FA for Users

You can enforce the use of 2fa for some (or all) categories of users. Set the following configuration option:

2FA_ENFORCE_FOR_USERS=n

where n is the privilege level of the user (see privs= here). For example to force 2fa for:

  • all superusers, set n to 3;
  • all custadmins and superusers, set n to 2; or
  • all users, set n to 1.

If a user without 2fa enabled tries to login from a privilege category that has been configured to enforce 2fa, they will be required to configure 2fa immediately before being granted access to IXP Manager.

From v7.0, 2fa is enforced for all users by default.

Lifetime

A user will not be asked to revalidate their 2fa code during the lifetime of a standard browser session or remember me session (see above).

Removing 2FA / Restoring User Access

We have opted not to implement recovery / backup codes as they are not particularly appropriate to the scope of IXP Manager.

If a user needs to have their 2fa removed (indefinitely or so they can reconfigure it), superadmins can do this via the standard user listing (the Users option in the left hand menu).

Identify the user you wish to remove 2fa from, dropdown the additional actions menu on the far right of the table row and select Remove 2FA.

Once you confirm this action, that user's 2fa configuration will be deleted. The next time they log in, they will either be granted access without 2fa or forced to reconfigure 2fa if you have enforced 2fa for the user's category.

Login Protection

Login throttling on failed password attempts

If a user makes repeated failed password attempts at login then that account will be denied for 1 minute, and they will receive an email advising their logins are being throttled. For each failed attempt thereafter, logins will be denied for an additional minute. This condition resets after a successful login, or 24 hours after the last failed password attempt.

Accounts that are currently locked out will have a badge on the user/list page. Administrative users can reset the failed attempts state by clicking the actions dropdown on the user row and clicking the Reset password lockout state.

A console command is also provided which can reset the failed password state for a user. ./artisan user:reset-password-lockout <username or email>

Details

  1. During the first few failed logins, nothing significantly different happens. The same "Invalid Username or Password" message is returned.

  2. After 5 failed attempts (AUTH_LOCKOUT_PASSWORD_ATTEMPTS= in .env), the user is informed "Your account is temporarily locked due to failed login attempts - try again in 1 minute". The same message is displayed if they try again before the minute has elapsed.

  3. After the time has elapsed, they may make another attempt. If it fails, they must wait 2 minutes before the next attempt. This continues until a maximum 'login delay' of 15 minutes (AUTH_LOCKOUT_MAX_LOGIN_THROTTLE= in .env) is reached.

  4. If the account is not currently being delayed, and the correct credentials are provided, all of the throttling state is reset and the user is logged in.

  5. After an amount of time without any failed login attempts - 24 hours by default (AUTH_LOCKOUT_PASSWORD_ATTEMPTS_EXPIRY=), the throttling is reset and the account behaves as if the user had no failed logins.

All of these behaviors also apply to usernames which do not exist on the system to prevent account enumeration.

Records about non-existent users are stored in unknown_user_login_attempts table. Records in this table are pruned when the last attempt is before the cutoff used in point 5 (ie, AUTH_LOCKOUT_PASSWORD_ATTEMPTS_EXPIRY). If required, pruning can be sped up by reducing AUTH_LOCKOUT_PASSWORD_ATTEMPTS_EXPIRY= to a lower setting, however this will mean the account throttle will go away earlier too as per point 5.

Note: The login lockout will not affect a user who is already logged in or a users ability to resume a Remember Me session. Nor will it affect a users API Keys. It only affects future login attempts.

2FA lockout on failed 2FA attempts

If a user makes multiple repeated failed 2FA attempts, their account will be completely locked on the basis that someone has obtained their password and is trying to login. An email will be sent to the user notifying them of the lockout and who to contact about removing it.

Accounts that have been locked will have a badge on the user/list page. Administrative users can reset the 2FA lockout - or if a user is a member of only one customer organisation their 2FA lockout may be reset by a Customer Administrator from the same customer organisation - by clicking the actions dropdown on the user row and clicking Reset 2FA lockout state.

A console command is provided which which can reset the 2FA lockout for a user. ./artisan user:reset-2fa-lockout <username or email>

Details

  1. During the first few failed attempts, the user is shown the normal error The one time password entered was wrong.

  2. After 5 failed attempts (AUTH_LOCKOUT_2FA_ATTEMPTS= in .env) the user will be logged out and the following message will be shown: Too many failed two factor authentication attempts. You have been logged out. See your email for more info.

  3. The user will receive an email informing them to change their password if the attempts were not made by them. The email will advise them to contact support to have their 2FA reset, or a Customer Administrator of their organisation if eligible.

Note: The 2FA lockout will not affect a user is already logged in or a users ability to resume a Remember Me session. Nor will it affect a users API Keys. It only affects future login attempts.