Skip to content

Add optional password authentication#41

Open
AZhrZho wants to merge 1 commit into
Textualize:mainfrom
AZhrZho:main
Open

Add optional password authentication#41
AZhrZho wants to merge 1 commit into
Textualize:mainfrom
AZhrZho:main

Conversation

@AZhrZho

@AZhrZho AZhrZho commented May 20, 2026

Copy link
Copy Markdown
  • Add password parameter to Server (None = no auth, current behavior)
  • HMAC-signed cookie auth via middleware when password is set
  • Login page with logo/title | separator | password form layout
  • Support ?password= query parameter for scripted access
  • /ws and /download/{key} return 403 when unauthenticated
  • /static/* remains open for login page assets
  • Add example: serve_with_password.py

- Add `password` parameter to Server (None = no auth, current behavior)
- HMAC-signed cookie auth via middleware when password is set
- Login page with logo/title | separator | password form layout
- Support `?password=` query parameter for scripted access
- `/ws` and `/download/{key}` return 403 when unauthenticated
- `/static/*` remains open for login page assets
- Add example: serve_with_password.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant