TroutTrout

Authenticate Users with Access Screens

Medium

Require users to log in before they can reach protected systems.

6 min read · Last updated 2026-10-20

Access screens enforce per-user, identity-backed authentication before anyone reaches a protected system, replacing shared credentials and static-IP trust with a browser login tied to your directory and a full audit trail.

If your users are already registered with an existing OIDC identity provider, they can use this method to get strong, per-user authentication to local nodes.

When to use access screens

Use access screens when:

  • You need per-user authentication tied to a directory, not shared credentials or static IPs
  • Access should revoke itself automatically after a preset timeout
  • You need an audit trail of who authenticated, when, and to which system
  • Users should authenticate in the browser before reaching an enclave

Prerequisites

Access screens rely on the secure OIDC protocol. They work with your OIDC identity provider, including Microsoft Entra ID, Active Directory, and Tailscale (Microsoft Entra ID is used in this how-to).

RequirementDetails
OIDC identity providerOne OIDC directory configured: Microsoft Entra ID, Active Directory, or Tailscale
Directory synchronizationUsers synchronized to Access Gate. See Synchronize user directory (Entra ID)
TLS certificatesValid TLS certificates installed on Access Gate
Secure Twin InterfaceThe interface connecting Access Gate to your identity provider. An on-premise IdP (OIDC or LDAP) needs LAN reachability only; a cloud-hosted IdP needs WAN access
DNS entryAn A or CNAME record pointing to the Secure Twin Interface IP (often 100.65.0.6), so users reach the form at a friendly URL such as https://auth.{your-domain}/access_form?url=cui-access

Creating a new screen

Under the Access Screens menu, use the Create template feature to create a new screen.

Creating an Access Screen on the Access Gate
Creating an Access Screen on the Access Gate

Click on the newly created entry, to access the text editor. This is a good place to remind users of the terms and conditions (policies) governing access to your network.

Example of a policy on an Access Screen
Example of a policy on an Access Screen

A few settings you can control in an Access Screen:

  • Security Level: the protection tier this access screen applies to, Low, Medium, or High.
  • Directory: which OIDC directory it uses to authenticate users (Microsoft Entra ID, Active Directory, or Tailscale).
  • Preset Access Timeout: how long a user's access stays authorized before it is automatically revoked and the user must re-authenticate. Presets are 15 minutes, 1 hour, or 8 hours. This is what lets the network "harden" itself again once an access is no longer needed.
Preset timeoutTypical use
15 minutesHigh-security enclaves, such as CUI or SCADA control systems
1 hourStandard engineering and development access
8 hoursContinuous OT operations and monitoring shifts

Back to the access screens list, copy the URL of the access screen just created. Share it with users who need to authenticate with Access Gate.

User Flow

  1. A user opens their browser and visits https://auth.{your-domain}/access_form?url=cui-access
  2. The Access Screen loads and the user accepts the policy set for this access screen.
  3. The user is redirected to the Microsoft Entra ID authentication portal to authenticate.
  4. Once approved, the user is redirected to the callback URL https://auth.{your-domain}/access_authorize
Logged in screen of the Access Gate
Logged in screen of the Access Gate

Access is granted or denied based on the workflow outcome, and an audit trail is recorded.

If the request is approved, the user's IP is automatically added to the proxy and authorized for the duration specified in the access screen. This happens in the background. The user can then continue their normal workflow: connecting to applications, databases, and other services,... while the enclave access rules are fully enforced.

Signing in with Active Directory

When the access screen uses an Active Directory (LDAP) directory, users sign in on the screen itself with their directory account. Access Gate checks the user name and password with the directory server, so users sign in with their user principal name (UPN), for example user@example.com.

  • Type the UPN exactly as set on the account. It can use a different suffix than the domain name: check the userPrincipalName of the account in Active Directory.
  • Other forms do not work: EXAMPLE\user, the account name alone (user), and the display name (for example Alice Salmon).

Access screens are where directory users sign in. The Access Gate management console uses its own local administrator accounts.

When sign-in fails

  • "internal error (check logs)": the access screen page had expired when it was sent. The logs show invalid csrf state, and the directory is not contacted at all. This also happens with a page opened before Access Gate restarted. Reload the access screen and sign in right away. After a failed attempt, reload the page before trying again rather than resubmitting it.
  • "permission denied": the directory refused the user name or password. Check the name format above and the password.
  • The directory cannot be reached or its certificate is refused: see the troubleshooting list in Synchronize a user directory (LDAP and Active Directory).

Example log

Recap

We built an Access Screen tied to your OIDC identity provider, so users authenticate through the browser before their IP is granted enclave access for a preset timeout.

Reach for this when you need per-user, identity-backed authentication and an audit trail in front of protected systems, instead of trusting an IP or a shared credential.

AspectOutcome
AuthenticationPer-user, identity-backed via your OIDC provider
Access durationConfigurable preset timeout, then automatic re-authentication
RevocationAutomatic: the user's IP is removed from the policy when the timeout expires
Audit trailEvery login attempt logged with timestamp, principal name, principal IP, and rule
Use instead ofStatic-IP trust or shared credentials in front of protected systems