(20250825) -Added new google places API Integration system, no more oauth system for places api integration,
added multiple files for and correction and changes as well.
This commit is contained in:
@@ -259,6 +259,29 @@ async def authorize_software_client(
|
||||
else:
|
||||
auth_url_failed = f"https://api.thecaoffice.com/shopify/auth/template?status=0&storeName={inbound_data.auth.storeName}&storeUrl={inbound_data.auth.storeUrl}"
|
||||
|
||||
elif inbound_data.softwareClient == "googlePlaces":
|
||||
# Make the client controller test and save the auth:
|
||||
response = await current_app.places_controller.save_auth(
|
||||
sql_conn=current_app.sql_writer,
|
||||
mongo_data_conn=current_app.data_mongo,
|
||||
auth=inbound_data.auth,
|
||||
user=kwargs.get("session_info"),
|
||||
session_token=inbound_headers.get("X-Session-Token")
|
||||
)
|
||||
|
||||
# Note down the results:
|
||||
success = response.success
|
||||
message = response.message
|
||||
token_id = response.token_id
|
||||
|
||||
auth_url_success = ""
|
||||
auth_url_failed = ""
|
||||
|
||||
if token_id is not None:
|
||||
auth_url_success = f"https://api.thecaoffice.com/user/auth/template?status=1&client=googlePlaces"
|
||||
else:
|
||||
auth_url_failed = f"https://api.thecaoffice.com/user/auth/template?status=0&client=googlePlaces&message={message}"
|
||||
|
||||
# ┳┓
|
||||
# ┣┫┏┓┏┏┓┏┓┏┓┏┏┓
|
||||
# ┛┗┗ ┛┣┛┗┛┛┗┛┗
|
||||
|
||||
Reference in New Issue
Block a user