mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Add CQCM production servers
This commit is contained in:
@@ -7,6 +7,7 @@ module DfcProvider
|
||||
PLATFORM_IDS = {
|
||||
'cqcm-dev' => "https://api.proxy-dev.cqcm.startinblox.com/profile",
|
||||
'cqcm-stg' => "https://api.proxy-stg.cqcm.startinblox.com/profile",
|
||||
'cqcm' => "https://carte.cqcm.coop/profile",
|
||||
}.freeze
|
||||
|
||||
prepend_before_action :move_authenticity_token
|
||||
|
||||
@@ -5,6 +5,7 @@ class ApiUser
|
||||
CLIENT_MAP = {
|
||||
"https://waterlooregionfood.ca/portal/profile" => "cqcm-dev",
|
||||
"https://api.proxy-stg.cqcm.startinblox.com/profile" => "cqcm-stg",
|
||||
"https://carte.cqcm.coop/profile" => "cqcm",
|
||||
}.freeze
|
||||
|
||||
def self.from_client_id(client_id)
|
||||
|
||||
@@ -18,6 +18,13 @@ class AuthorizationControl
|
||||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqtvdb3BdHoLnNeMLaWd7nugPwdRAJJpdSySTtttEQY2/v1Q3byJ/kReSNGrUNkPVkOeDN3milgN5Apz+sNCwbtzOCulyFMmvuIOZFBqz5tcgwjZinSwpGBXpn6ehXyCET2LlcfLYAPA9axtaNg9wBLIHoxIPWpa2LcZstogyZY/yKUZXQTDqM5B5TyUkPN89xHFdq8SQuXPasbpYl7mGhZHkTDHiKZ9VK7K5tqsEZTD9dCuTGMKsthbOrlDnc9bAJ3PyKLRdib21Y1GGlTozo4Y/1q448E/DFp5rVC6jG6JFnsEnP0WVn+6qz7yxI7IfUU2YSAGgtGYaQkWtEfED0QIDAQAB
|
||||
-----END PUBLIC KEY-----
|
||||
KEY
|
||||
|
||||
# Copied from: https:///authentification.cqcm.coop/realms/cqcm
|
||||
"https:///authentification.cqcm.coop/realms/cqcm" => <<~KEY,
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhz7dK3xQAWL+u++E/64T1OHEvnFrZRLzgCmw0leib3JL/XbaE4Jbd3fs2+zc3+dCwvCuLEKKO9Hc9wg79ifjtMKFfZDE1Ba+qhw7J9tYnu7TBtaxKuWUCdtwuultEdW+NFndaUvhD/TdyjDkRiO98mgvUbm2A3q/zyDmoUpR2IEfevkMSz8MnxUo1bDTJIyoYoKwnbToI1E9RVx2uYsYKk24Pfd+r6oTbi7TxA6Ia4EiREFki2gNIAdp66IqF0Gxyd+nGlkIbQGrW+9xynU4ar3ZNq/P8EZFdO57AdEvC3ZAzpTvOVcQ0cQ4XbRSYWQHyZ8jnjggpeddTGSqVlgx1wIDAQAB
|
||||
-----END PUBLIC KEY-----
|
||||
KEY
|
||||
}.freeze
|
||||
|
||||
def self.public_key(token)
|
||||
|
||||
@@ -8,7 +8,7 @@ class ProxyNotifier
|
||||
TOKEN_ENDPOINTS = {
|
||||
'https://api.proxy-dev.cqcm.startinblox.com/profile' => "https://kc.cqcm.startinblox.com/realms/startinblox/protocol/openid-connect/token",
|
||||
'https://api.proxy-stg.cqcm.startinblox.com/profile' => "https://kc.cqcm.startinblox.com/realms/startinblox/protocol/openid-connect/token",
|
||||
'https://api.proxy.cqcm.startinblox.com/profile' => "https://authentification.cqcm.coop/realms/cqcm/protocol/openid-connect/token",
|
||||
'https://carte.cqcm.coop/profile' => "https://authentification.cqcm.coop/realms/cqcm/protocol/openid-connect/token",
|
||||
|
||||
}.freeze
|
||||
|
||||
|
||||
@@ -66,7 +66,9 @@ module OpenFoodNetwork
|
||||
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
|
||||
"cqcm" => <<~DESC,
|
||||
Show DFC Permissions interface to share data with CQCM.
|
||||
DESC
|
||||
}.merge(conditional_features).freeze;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user