Skip to content

feat: Basic authentication#5779

Merged
kof merged 19 commits into
mainfrom
wsauth.staging
May 27, 2026
Merged

feat: Basic authentication#5779
kof merged 19 commits into
mainfrom
wsauth.staging

Conversation

@kof
Copy link
Copy Markdown
Member

@kof kof commented May 26, 2026

Closes #3991

Adds HTTP Basic Authentication support for published pages and project-level .wsauth rules.

This introduces a new @webstudio-is/wsauth package that owns the generic authentication format logic: parsing, validation, serialization, route matching, resource generation, and request authentication. The current supported method is basic, with the package structured so additional auth methods can be added later.

Builder changes include:

  • Page Settings now has an Authentication section for per-page Basic Auth credentials.
  • Project Settings now has an Authentication section for editing .wsauth route rules.
  • Page Settings was split into section-specific files with focused tests.
  • Auth UI shows Pro badges/info tooltips but remains editable.
  • Publishing to custom domains is blocked on plans without allowAuth when either page auth or project auth is configured.
  • ProBadge now renders as a real pricing link and uses improved text alignment.

Build/publish changes include:

  • CLI prebuild generates and merges .wsauth entries.
  • Published app templates enforce auth for HTML/XML routes.
  • Generated auth resources are shared between build output and runtime.

@kof kof added this to 🚀 Roadmap May 27, 2026
@kof kof moved this to 🌐 Released in 🚀 Roadmap May 27, 2026
@kof kof merged commit 16fa5ab into main May 27, 2026
32 of 34 checks passed
@kof kof deleted the wsauth.staging branch May 27, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🌐 Released

Development

Successfully merging this pull request may close these issues.

Password protected pages

1 participant