This section explains how to configure Basic Authentication as an SSO provider in Localtonet using a username and password–based access model.
Basic Auth is useful for simple setups, internal tools, or cases where external identity providers are not required.
Basic Auth is recommended when:
You need quick protection without external providers
The tunnel is used by a small, controlled group
You want to define explicit usernames and passwords
External SSO (Google, GitHub, etc.) is not available or desired
For production and enterprise environments, external SSO providers are generally recommended.
Open the SSO Providers section in your Localtonet account.
Click Add Provider.
Fill in the provider details:
Provider Name
Any descriptive name (e.g. Basic Auth, Internal Access)
Provider Type
Select Username / Password
Toggle Active if you want the provider enabled immediately.
Click Save.
At this point, the provider is created but has no users yet.
Expand the Details section of the provider.
Under Users, click Add User.
Enter:
Username
Password
Repeat this step for each user that should have access.
If you change an existing username, you must provide a new password.
Click Save after adding or updating users.
The credentials are securely stored and managed by Localtonet.
Open the HTTP Tunnel Settings for the tunnel you want to protect.
Navigate to SSO Providers → Manage.
Enable SSO for this tunnel.
Toggle Basic Auth (Username / Password) to enable it for the tunnel.
Configure optional tunnel-level settings:
SSO Path(s) – paths that require authentication
Logout Path – logout endpoint
Allowed Domains / Emails / Usernames
Click Save Changes.
When a user accesses the tunnel URL:
The request is intercepted by the Localtonet authentication layer.
The user is prompted to enter a username and password.
Credentials are validated against the configured users.
Access is granted or denied based on the result.
Your local service does not handle authentication.
Use strong, unique passwords for each user
Rotate passwords periodically
Remove unused users promptly
Prefer external SSO providers for sensitive or public-facing services
Use HTTPS-only tunnels when using Basic Auth
No federation or identity sharing
Manual user management
No MFA support
Despite these limitations, Basic Auth remains a simple and effective solution for many use cases.