Skip to content

Commit

Permalink
Add firebase authentication in Mesop (#512)
Browse files Browse the repository at this point in the history
* WIP

* WIP

* refactoring

* WIP: Add logic to update security policy

* WIP: Add login component

* WIP: Add logout component

* Add firebase authentication component

* Pass props to web components

* Fix tests

* Fix mesop related imports in tests

* Fix review comments

* Fix tests

* Fix mesop tests

* Add documentation for Mesop authentication

* Polishing

* Fix review comments

* Polishing

* wip

* Polishing

* polishing

* polishing

* merge with main

---------

Co-authored-by: Davor Runje <[email protected]>
  • Loading branch information
harishmohanraj and davorrunje authored Nov 5, 2024
1 parent 4aee864 commit 51ed7c2
Show file tree
Hide file tree
Showing 37 changed files with 1,190 additions and 66 deletions.
12 changes: 11 additions & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,17 @@
"line_number": 1066,
"is_secret": false
}
],
"tests/ui/mesop/test_main.py": [
{
"type": "Secret Keyword",
"filename": "tests/ui/mesop/test_main.py",
"hashed_secret": "3acfb2c2b433c0ea7ff107e33df91b18e52f960f",
"is_verified": false,
"line_number": 30,
"is_secret": false
}
]
},
"generated_at": "2024-11-05T09:47:10Z"
"generated_at": "2024-11-05T11:49:46Z"
}
1 change: 1 addition & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/overrides/main.html
15 changes: 14 additions & 1 deletion docs/docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ search:
- [UI](user-guide/ui/index.md)
- [Console](user-guide/ui/console/basics.md)
- [Mesop](user-guide/ui/mesop/basics.md)
- [FastAPI](user-guide/ui/fastapi/basics.md)
- [Adapters](user-guide/adapters/index.md)
- [FastAPI](user-guide/adapters/fastapi/index.md)
- [Nats.io](user-guide/adapters/nats/index.md)
Expand Down Expand Up @@ -178,6 +177,20 @@ search:
- [ConsoleUI](api/fastagency/ui/console/console/ConsoleUI.md)
- mesop
- [MesopUI](api/fastagency/ui/mesop/MesopUI.md)
- auth
- [AuthProtocol](api/fastagency/ui/mesop/auth/AuthProtocol.md)
- auth
- [AuthProtocol](api/fastagency/ui/mesop/auth/auth/AuthProtocol.md)
- firebase
- [FirebaseAuth](api/fastagency/ui/mesop/auth/firebase/FirebaseAuth.md)
- [FirebaseConfig](api/fastagency/ui/mesop/auth/firebase/FirebaseConfig.md)
- [firebase_auth_component](api/fastagency/ui/mesop/auth/firebase/firebase_auth_component.md)
- firebase_auth
- [FirebaseAuth](api/fastagency/ui/mesop/auth/firebase/firebase_auth/FirebaseAuth.md)
- [FirebaseConfig](api/fastagency/ui/mesop/auth/firebase/firebase_auth/FirebaseConfig.md)
- firebase_auth_component
- [FirebaseConfig](api/fastagency/ui/mesop/auth/firebase/firebase_auth_component/FirebaseConfig.md)
- [firebase_auth_component](api/fastagency/ui/mesop/auth/firebase/firebase_auth_component/firebase_auth_component.md)
- components
- helpers
- [darken_hex_color](api/fastagency/ui/mesop/components/helpers/darken_hex_color.md)
Expand Down
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/ui/mesop/auth/AuthProtocol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.AuthProtocol
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/ui/mesop/auth/auth/AuthProtocol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.auth.AuthProtocol
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/ui/mesop/auth/firebase/FirebaseAuth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.FirebaseAuth
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.FirebaseConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.firebase_auth.FirebaseAuth
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.firebase_auth.FirebaseConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.firebase_auth_component
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.firebase_auth_component.FirebaseConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.ui.mesop.auth.firebase.firebase_auth_component.firebase_auth_component
13 changes: 0 additions & 13 deletions docs/docs/en/user-guide/ui/fastapi/basics.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/docs/en/user-guide/ui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ The **MesopUI** is a web-based interface that enables users to interact with age

[Learn more about MesopUI →](./mesop/basics.md)

### 3. **[FastAPI UI (Coming Soon)](./fastapi/basics.md)**
FastAgency will soon introduce **FastAPI UI** support, which will allow you to build multi-agent systems with a FastAPI backend. This will enable seamless integration with RESTful APIs for modern web applications.

[Learn more about FastAPI UI (Coming Soon) →](./fastapi/basics.md)

---

Each of these UI options is designed to cater to different stages of the development lifecycle, providing flexibility whether you're prototyping or deploying a production-ready application. Stay tuned for updates, and if you have any questions or want to join the community, visit our [**Discord channel**](https://discord.gg/kJjSGWrknU).
Loading

0 comments on commit 51ed7c2

Please sign in to comment.