CallMeTechie
DE Login
Home Products Blog About Contact

Route Auth vs. Basic Auth

🔒 Security · Updated 1 month ago

Comparison table

Property No Auth Basic Auth Route Auth
Security level None Medium High
Login UI None Browser dialog Custom login page
Password storage bcrypt bcrypt
2FA possible No No Yes
Session/Logout No/No Yes/Yes
API-compatible Yes Yes (curl -u) No (cookie-based)
Custom branding No Yes
Accounts per route 1 1
Email required No No Yes (for email methods)
SMTP required No No Only for Email Code
Works with L4 No No

Setup

Basic Auth via the UI

  1. Create or edit a route
  2. Auth Type: select Basic Auth
  3. Enter username and password
  4. Save

Route Auth via the UI

  1. Create or edit a route
  2. Auth Type: select Route Auth
  3. Choose a method (Email & Password, Email & Code, TOTP)
  4. Optional: enable 2FA and choose the second factor
  5. Enter email and password if applicable
  6. Save
  7. For TOTP: reopen the route and scan the QR code

Via the API

# Enable Basic Auth
curl -X PUT https://gatecontrol.example.com/api/v1/routes/1 \
  -H "Authorization: Bearer gc_..." \
  -H "Content-Type: application/json" \
  -d '{
    "basic_auth_enabled": true,
    "basic_auth_user": "admin",
    "basic_auth_password": "my-secure-password"
  }'

# Enable Route Auth (Email & Password)
curl -X PUT https://gatecontrol.example.com/api/v1/routes/1 \
  -H "Authorization: Bearer gc_..." \
  -H "Content-Type: application/json" \
  -d '{
    "auth_type": "route",
    "route_auth_method": "email_password",
    "route_auth_email": "admin@example.com",
    "route_auth_password": "my-secure-password"
  }'

Cookie Settings

We use cookies to improve your experience. Essential cookies are always active.

Privacy Policy
ESC
↑↓ navigate open esc close