Add CQCM staging server to platforms

This commit is contained in:
Maikel Linke
2025-08-29 14:14:05 +10:00
parent 8ccceccd92
commit 51a3085452
3 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ module DfcProvider
# local ID => semantic ID
PLATFORM_IDS = {
'cqcm-dev' => "https://api.proxy-dev.cqcm.startinblox.com/profile",
'cqcm-stg' => "https://api.proxy-stg.cqcm.startinblox.com/profile",
}.freeze
prepend_before_action :move_authenticity_token

View File

@@ -4,6 +4,7 @@
class ApiUser
CLIENT_MAP = {
"https://waterlooregionfood.ca/portal/profile" => "cqcm-dev",
"https://api.proxy-stg.cqcm.startinblox.com/profile" => "cqcm-stg",
}.freeze
def self.from_client_id(client_id)

View File

@@ -62,7 +62,11 @@ module OpenFoodNetwork
Enable the inventory.
DESC
"cqcm-dev" => <<~DESC,
Show DFC Permissions interface to share data with CQCM dev platform.
Show DFC Permissions interface with development platform.
DESC
"cqcm-stg" => <<~DESC,
Show DFC Permissions interface to share data with CQCM staging platform.
After approval, enteprises should apppear on https://cqcm-map.startinblox.com/.
DESC
}.merge(conditional_features).freeze;