-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(UX): reloading web pages maintains auth context (#111)
When a user refreshes a webpage they will remain logged in. HMAC-based auth token persisted in the HTTP session as a cookie and in the backend using an in-mem cache. --------- Co-authored-by: Janaka Abeywardhana <[email protected]>
- Loading branch information
Showing
14 changed files
with
542 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
STREAMLIT_SERVER_ADDRESS=0.0.0.0 | ||
STREAMLIT_SERVER_PORT=8501 #default | ||
DOCQ_DATA=./.persisted/ | ||
OPENAI_API_KEY # ideally set value on shell, don't insert a value here becuase it's a secret. | ||
DOCQ_OPENAI_API_KEY # ideally set value on shell, don't insert a value here becuase it's a secret. | ||
DOCQ_COOKIE_HMAC_SECRET_KEY=cookie_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DOCQ_DATA = "./.persisted/" | ||
OPENAI_API_KEY = "YOUR-OPENAI-API-KEY" | ||
DOCQ_OPENAI_API_KEY = "YOUR-OPENAI-API-KEY" | ||
DOCQ_COOKIE_HMAC_SECRET_KEY = "32_char_secret_used_to_encrypt" |
Oops, something went wrong.