From 4b621b9b4100c15928e843711bb4f9630b26140f Mon Sep 17 00:00:00 2001 From: Sinh Date: Thu, 18 Jul 2024 16:15:58 +0700 Subject: [PATCH 1/2] feat: update URLs and authentication base across files - Update production URLs in `viettel_ffm.go` - Change the authentication base URLs for staging and production Signed-off-by: Sinh --- partnerapi/viettelffm/viettel_ffm.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/partnerapi/viettelffm/viettel_ffm.go b/partnerapi/viettelffm/viettel_ffm.go index afdafa6..16b8e57 100644 --- a/partnerapi/viettelffm/viettel_ffm.go +++ b/partnerapi/viettelffm/viettel_ffm.go @@ -20,9 +20,8 @@ const ( baseURLStag = "https://stg-gw.viettelpost.vn" baseURLAuthStag = "https://stg-keycloak.viettelpost.vn" - // TODO: update prod url - baseURLProd = "" - baseURLAuthProd = "" + baseURLProd = "https://gw.viettelpost.vn" + baseURLAuthProd = "https://dws-sso.viettelpost.vn" pathAuth = "/realms/wms/protocol/openid-connect/token" pathUpdateORLogisticInfo = "/wms-core/api/v1/obms/outbound-request/outbound-request-partner/%s" From 3c9e732552ce659bae44085b9caeec1995bf1e75 Mon Sep 17 00:00:00 2001 From: Sinh Date: Thu, 5 Dec 2024 14:06:34 +0700 Subject: [PATCH 2/2] feat(vtp): change base url --- partnerapi/viettelffm/viettel_ffm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partnerapi/viettelffm/viettel_ffm.go b/partnerapi/viettelffm/viettel_ffm.go index 16b8e57..99a3394 100644 --- a/partnerapi/viettelffm/viettel_ffm.go +++ b/partnerapi/viettelffm/viettel_ffm.go @@ -17,8 +17,8 @@ import ( ) const ( - baseURLStag = "https://stg-gw.viettelpost.vn" - baseURLAuthStag = "https://stg-keycloak.viettelpost.vn" + baseURLStag = "https://gw.viettelpost.vn" + baseURLAuthStag = "https://dws-sso.viettelpost.vn" baseURLProd = "https://gw.viettelpost.vn" baseURLAuthProd = "https://dws-sso.viettelpost.vn"