(20241209) Standardizing the data models for the database. Started with mail authentication.
This commit is contained in:
@@ -111,6 +111,7 @@ def init(blueprint_setup_state):
|
||||
@test_callback_bp.route("/callback", methods = ["POST", "GET"])
|
||||
@set_api_version(api_version = "1.0.0")
|
||||
@read_input(sanitize_headers = False, sanitize_data = False)
|
||||
@get_session_info(key = "X-Session-Token", session_coro = "get_session")
|
||||
@log_request_to_mongo(
|
||||
attr_name = "logs_mongo",
|
||||
project = constants.PROJECT_NAME,
|
||||
@@ -118,7 +119,7 @@ def init(blueprint_setup_state):
|
||||
operation = "testCllBckApi",
|
||||
log_input = True,
|
||||
log_output = True,
|
||||
sensitive_keys = None
|
||||
sensitive_keys = ["sessionToken", "X-Session-Token"]
|
||||
)
|
||||
@log_chain_to_mongo(attr_name = "logs_mongo")
|
||||
@should_not_be_under_maintenance(attr_name = "is_under_maintenance")
|
||||
@@ -130,6 +131,8 @@ async def callback_test(
|
||||
**kwargs
|
||||
):
|
||||
|
||||
print("SESSION INFO:", kwargs.get("session_info"))
|
||||
|
||||
# Return a random page:
|
||||
return await render_template(
|
||||
random.choice([
|
||||
|
||||
Reference in New Issue
Block a user