Operator-configurable public-vs-private mode per standalone (forum, market, tasks, activities) #34
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently:
4605703with a hardcoded router guard.Per-deployment, the operator should be able to flip any of forum / market / tasks / activities into "always require login" mode (same behavior as wallet/chat/castle).
Proposed mechanism
Per-module env var, opt-in:
In each app's
app.ts, the existingrouter.beforeEachreads this and, when true, redirects any non-/loginroute to/loginfor unauth users — i.e. the same logic just shipped for wallet/chat/castle.Acceptance criteria
VITE_*_REQUIRE_AUTHenv var, default false..env.exampledocuments the four variables with comments.Notes