Skip to main content

Configuring Authentication for PingCastle Enterprise

Authentication​

PingCastle Enterprise supports multiple authentication methods that can work simultaneously. You can configure any combination of Local Authentication, Windows Authentication, OpenID Connect, Entra ID Authentication, Header Authentication, SAML2, and Client Certificate authentication, allowing users to choose their preferred login method.

Set up each method's identity provider using the instructions on this page, then enter the resulting values on the Login options, Windows authentication, Certificate authentication, Header authentication, OIDC Connect, and SAML screens under Configuration > Settings in the PingCastle Enterprise web interface.

note

Most changes on these screens take effect within about 30 seconds, without a restart. Two setting groups — HTTPS redirection and allowed hosts settings, and database schema changes — restart PingCastle Enterprise automatically: it stops itself about 1 second after you save, then IIS restarts it. Six other restart-flagged settings — the three file logging settings, maximum concurrent scans, and both SCIM rate limit settings — require you to restart PingCastle Enterprise manually after saving.

tip

You can enable OpenID Connect, SAML2, Windows Authentication, and Disable Password Login during installation, on the Authentication method screen of the installer. See Step 2 - Run PingCastleEnterpriseInstaller.exe (production). The instructions on this page apply whether you configure a method during installation or afterward on the Configuration > Settings screens.

Local authentication​

PingCastle Enterprise enables local authentication by default, using a username and password stored in the PingCastle Enterprise database. It needs no additional configuration.

To hide the local authentication option when you configure other authentication methods, enable Disable Password Login on Configuration > Settings > Login options.

warning

When you enable both Disable Password Login and Windows Authentication, any account calling the API must be a member of the Windows group you set in Windows Group.

Passkeys​

Passkeys let users with local accounts verify their identity with a device or security key that supports the WebAuthn and FIDO2 standards. Users can use a passkey as a second factor after their password, or, if you allow it, to sign in without a password. Users register and manage their own passkeys. See Sign-in security.

Passkeys are available only to local accounts. Users who sign in with Windows, OpenID Connect, SAML2, or another external method can't use them.

Passkey requirements​

  • PingCastle Enterprise must use HTTPS. Passkeys don't work over HTTP.
  • Users must reach PingCastle Enterprise through a DNS name. Passkeys don't work on localhost or an IP address.
  • Users must browse to PingCastle Enterprise using the address you set in Allowed Origins.

The installer sets up passkeys for you when you enter an HTTPS address. When you upgrade from an earlier version that already uses HTTPS and has a web host configured, the upgrade fills in the passkey settings from that web host and enables passkeys.

Configure passkeys​

Configure passkeys on Configuration > Settings > Authentication, in the Passkeys section.

FieldDescription
PasskeysTurns passkeys on or off. When you turn this off, users can't register or use passkeys, and passwordless sign-in is also turned off.
Allow passwordless sign-inLets users sign in with a passkey alone, without a password or second factor. When this is off, users can use passkeys only as a second factor.
Server DomainThe host name users browse to, with no https:// prefix or port. For example, pingcastle.contoso.com.
Allowed OriginsThe exact address the browser reports, in the form https://<host>[:<port>]. For example, https://pingcastle.contoso.com.

You can't turn on passkeys while Server Domain is empty. These changes take effect without a restart.

warning

Changing Server Domain or Allowed Origins invalidates every registered passkey. PingCastle Enterprise asks you to confirm, then deletes them. Users sign in with their password and register their passkeys again.

Revoke passkeys by authenticator type​

You can revoke every passkey of one authenticator type at once. Use this when a vulnerability affects a type of authenticator, when you retire a type of device, or when you migrate users to a different one. For example, you can revoke all passkeys created with one vendor's security keys and leave the rest in place.

  1. Go to Configuration > Settings > Authentication.

  2. In the Passkeys section, scroll below all the settings to the table of authenticator types and find the type you want to revoke.

  3. Click Revoke next to it, and confirm.

Affected users see nothing different. They sign in with their password, and if passkeys are still enabled, they can register a passkey again.

Troubleshooting passkey availability​

When passkeys aren't available, a banner on the page explains why. Administrators see how to fix the problem, and other users see a message to contact an administrator. The banner appears when:

  • HTTPS is turned off.
  • The address in the browser doesn't match Allowed Origins.
  • Server Domain is empty.

Passkey controls stay disabled until you resolve the cause.

Login options​

The Login options screen also includes these fields:

FieldDescription
Minimum Password LengthThe minimum number of characters required for local authentication passwords. Applies only when you enable Local Authentication.
Session TimeoutThe number of minutes a user session can remain idle before PingCastle Enterprise logs the user out.

Custom login message​

You can display a custom message on the login page, such as an internal notice or an authorized-use banner, by setting Custom Login Message on Configuration > Settings > Login options.

Example:

<p>The PingCastle UK Instance for Consto</p>

The custom message appears on the login page within about 30 seconds:

The login screen showing the custom login message

Security Note

The Custom Login Message setting renders raw HTML without escaping. While this allows formatting flexibility using Bootstrap CSS styles, Content Security Policy (CSP) protections prevent injection of custom CSS or JavaScript.