-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update cookiecutter generated files * Update cookiecutter * Fix embedding console UI docs --------- Co-authored-by: Kumaran Rajendhiran <[email protected]>
- Loading branch information
1 parent
6403b84
commit b18c976
Showing
7 changed files
with
26 additions
and
8 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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
|
||
app = FastAgency( | ||
provider=provider, | ||
ui=MesopUI(), | ||
ui=ui, | ||
title="My FastAgency App", | ||
) | ||
|
||
|
17 changes: 16 additions & 1 deletion
17
...c/getting_started/basic_auth/mesop/my_fastagency_app/my_fastagency_app/deployment/main.py
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,11 +1,26 @@ | ||
from fastagency import FastAgency | ||
from fastagency.ui.mesop import MesopUI | ||
from fastagency.ui.mesop.auth.basic_auth import BasicAuth | ||
|
||
from ..workflow import wf | ||
|
||
auth = BasicAuth( | ||
# TODO: Replace `allowed_users` with the desired usernames and their | ||
# bcrypt-hashed passwords. One way to generate bcrypt-hashed passwords | ||
# is by using online tools such as https://bcrypt.online | ||
# Default password for all users is `password` | ||
allowed_users={ | ||
"admin": "$2y$10$ZgcGQlsvMoMRmmW4Y.nUVuVHc.vOJsOA7iXAPXWPFy9DX2S7oeTDa", # nosemgrep: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash | ||
"[email protected]": "$2y$10$ZgcGQlsvMoMRmmW4Y.nUVuVHc.vOJsOA7iXAPXWPFy9DX2S7oeTDa", # nosemgrep: generic.secrets.security.detected-bcrypt-hash.detected-bcrypt-hash | ||
}, | ||
) | ||
|
||
ui = MesopUI(auth=auth) | ||
|
||
|
||
app = FastAgency( | ||
provider=wf, | ||
ui=MesopUI(), | ||
ui=ui, | ||
title="My FastAgency App", | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
|
||
app = FastAgency( | ||
provider=provider, | ||
ui=MesopUI(), | ||
ui=ui, | ||
title="My FastAgency App", | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
app = FastAgency( | ||
provider=provider, | ||
ui=MesopUI(), | ||
ui=ui, | ||
title="My FastAgency App", | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
app = FastAgency( | ||
provider=provider, | ||
ui=MesopUI(), | ||
ui=ui, | ||
title="My FastAgency App", | ||
) | ||
|
||
|