Learn

Protect a path with a sign-in

Require a sign-in before visitors can open a path, for example /admin of a web application.

The sign-in settings of a route

Setting it up

Using the preset (easiest)

Go to Templates and presets → Protect a path with a sign-in:

  1. Choose the route whose host names and backends to use.
  2. Enter the path to protect (e.g. /admin).
  3. Choose the users and teams that may enter.
  4. Set the default session duration.

The preset adds a separate route for the path in front of the existing one.

The preset

In the route editor

Open the route editor → Sign-in section:

  • Tick Require a sign-in.
  • Under Who signs in, choose Users and teams and enter the names.
  • Set Idle time (1–60 minutes without activity) and/or Maximum open time (1–12 hours).

What visitors see

A browser without a valid session is sent to the gateway's own sign-in page at /.waf/access/sign-in on the same host:

The public sign-in page

Visitors sign in with their gateway account (user name, password and TOTP code if they have 2FA). They choose how long to stay signed in. Afterwards they are taken to the page they originally asked for.

Identity provider sign-in (SSO)

Instead of the gateway's own users, you can let visitors sign in with their company account (Microsoft Entra ID, Auth0, Keycloak, Google, …). In the route editor → Sign-in → Who signs in → choose an identity provider. See Identity providers.

Managing open sessions

  • Users: sign in to the admin UI with their account → Your open routes → see their open routes, close any.
  • Administrators: Open routes in the menu → see all open sessions, filter by route, close any.

Closing a session takes effect at the next request. Every close is in the audit log.

Notes

  • Administrators get no automatic access — they must be named like anyone else.
  • A user who has not finished their invitation cannot sign in.
  • A new password ends a user's open sessions on this route.
  • Sessions survive a gateway restart (unless you untick Keep sign-ins across restarts on the Open routes page).
  • The sign-in page is protected by the same rules and rate limits as the rest of the route.