-
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.
Janaka/update/ux reloading web pages (#113)
* refactor: auth token based logic * fix cookie setting * refactor: remove AUTO_LOGIN as feature type adding ability to toggle token based auth per org is making it more brittle and risky * refactor: rename env vars to prefix "DOCQ_" * refactor: rename session cookie var to be more specific * tests: fix auth utils tests after refactor * fix: remove _auto_login_feature_enabled * chore: tweak debug logs in auth utils
- Loading branch information
Showing
11 changed files
with
269 additions
and
237 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,5 +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. | ||
COOKIE_SECRET_KEY=cookie_password | ||
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,3 +1,3 @@ | ||
DOCQ_DATA = "./.persisted/" | ||
OPENAI_API_KEY = "YOUR-OPENAI-API-KEY" | ||
COOKIE_SECRET_KEY = "cookies_password" | ||
DOCQ_OPENAI_API_KEY = "YOUR-OPENAI-API-KEY" | ||
DOCQ_COOKIE_HMAC_SECRET_KEY = "32_char_secret_used_to_encrypt" |
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
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
Oops, something went wrong.