From 52d46e4afd2e4fe8d5b9bab905c748b60739381b Mon Sep 17 00:00:00 2001 From: bhumin-fw <99269796+bhumin-fw@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:50:40 -0800 Subject: [PATCH] Update startup.py --- .../src/formsflow_api_utils/utils/startup.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/forms-flow-api-utils/src/formsflow_api_utils/utils/startup.py b/forms-flow-api-utils/src/formsflow_api_utils/utils/startup.py index cc352e810..6385c4794 100644 --- a/forms-flow-api-utils/src/formsflow_api_utils/utils/startup.py +++ b/forms-flow-api-utils/src/formsflow_api_utils/utils/startup.py @@ -15,15 +15,9 @@ def setup_jwt_manager(app, jwt_manager): """Use flask app to configure the JWTManager to work for a particular Realm.""" def get_roles(a_dict): - print("Remove after testing") - print(app.config["JWT_OIDC_AUDIENCE"]) - for k, v in a_dict.items(): - print(k, v) resource = a_dict["resource_access"].get(app.config["JWT_OIDC_AUDIENCE"]) return resource["roles"] if resource else a_dict["roles"] - print("setup_jwt_manager Called") app.config["JWT_ROLE_CALLBACK"] = get_roles - print(app.config["JWT_ROLE_CALLBACK"]) jwt_manager.init_app(app)