[PATCH 3/3] Open AUR sessions from SSO

2020-06-08 Thread Frédéric Mangano-Tarumi
Only the core functionality is implemented here. See the TODOs. --- aurweb/routers/sso.py | 51 +-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/aurweb/routers/sso.py b/aurweb/routers/sso.py index b16edffb..d0802c34 100644 ---

[PATCH 1/3] Add SSO account ID in table Users

2020-06-08 Thread Frédéric Mangano-Tarumi
This column holds a user ID issed by the single sign-on provider. For Keycloak, it is an UUID. For more flexibility, we will be using a standardly-sized VARCHAR field. --- aurweb/schema.py | 1 + ...6e1cd_add_sso_account_id_in_table_users.py | 30 +++

[PATCH 2/3] Integrate SQLAlchemy into FastAPI

2020-06-08 Thread Frédéric Mangano-Tarumi
--- aurweb/db.py | 30 ++ 1 file changed, 30 insertions(+) diff --git a/aurweb/db.py b/aurweb/db.py index 1ccd9a07..02aeba38 100644 --- a/aurweb/db.py +++ b/aurweb/db.py @@ -10,6 +10,8 @@ except ImportError: import aurweb.config +engine = None # See get_engine +