(20250625) - Implemented the ecommerce shopify auth integration.

with multiple files added new API for get token details
This commit is contained in:
yatmesh
2025-06-25 14:06:02 +05:30
parent 388b9bdd1b
commit c022844824
14 changed files with 1029 additions and 7 deletions
+14 -1
View File
@@ -102,6 +102,7 @@ from controllers_v2.finstitutions.payments.safaricom_mpesa_express import Safari
from controllers_v2.software.mikrotik.all_mikrotik import AllMikroTikController
from controllers_v2.software.mikrotik.mikrotik_pppoe_1000 import MikroTikPPPoE1000Controller
from controllers_v2.software.mikrotik.mikrotik_hostpot_1000 import MikroTikHotspot1000Controller
from controllers_v2.software.ecommerce.shopify import ShopifyAppController
# ---
from controllers_v2.common.otp.timed_otp import TimedOTPController
@@ -157,7 +158,7 @@ from api.blueprints.common.disable import auth_token_disable_bp
from api.blueprints.common.session_token import session_token_bp
from api.blueprints.common.otp.timed_otp import timed_otp_bp
from api.blueprints.common.otp.timed_otp_test import timed_otp_bp_test
from api.blueprints.common.integrations.get import integration_get_bp
# Tech and Testing Blueprints:
from api.blueprints.tech.chat_alerts import tech_chat_alert_bp
from api.blueprints.test.callback import test_callback_bp
@@ -233,6 +234,7 @@ app.register_blueprint(trading_symbols_list_bp, url_prefix = f"/{MODULE_BASE}/fi
app.register_blueprint(auth_token_disable_bp, url_prefix = f"/{MODULE_BASE}")
app.register_blueprint(session_token_bp, url_prefix = f"/{MODULE_BASE}")
app.register_blueprint(timed_otp_bp, url_prefix = f"/{MODULE_BASE}/otp/timed")
app.register_blueprint(integration_get_bp, url_prefix = f"/{MODULE_BASE}/integrations/")
# app.register_blueprint(timed_otp_bp_test, url_prefix = f"/{MODULE_BASE}/otp/timed")
# AI Blueprints:
@@ -601,6 +603,17 @@ async def app_startup(**kwargs):
)
current_app.printer("Software/MikroTik (C) ready.")
# software / ecommerce
current_app.shopify_controller = ShopifyAppController(
cache=current_app.module_cache,
http_client=current_app.http_client,
alert_url=current_app.script_data["alerts"]["url"],
debug=enable_debugging
)
current_app.printer("Software/ecommerce (C) ready.")
# Common / OTP:
current_app.timed_otp_controller = TimedOTPController(
debug = enable_debugging