Fixed the subscriber key issue
This commit is contained in:
@@ -112,7 +112,7 @@ app:
|
|||||||
# Mandatory.
|
# Mandatory.
|
||||||
registryUrl: REGISTRY_URL
|
registryUrl: REGISTRY_URL
|
||||||
auth: false
|
auth: false
|
||||||
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"
|
uniqueKey: "BAP_SUBSCRIBER_KEY_ID"
|
||||||
|
|
||||||
# Mandatory.
|
# Mandatory.
|
||||||
city: "std:080"
|
city: "std:080"
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ app:
|
|||||||
# Mandatory.
|
# Mandatory.
|
||||||
registryUrl: REGISTRY_URL
|
registryUrl: REGISTRY_URL
|
||||||
auth: false
|
auth: false
|
||||||
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"
|
uniqueKey: "BAP_SUBSCRIBER_KEY_ID"
|
||||||
|
|
||||||
# Mandatory.
|
# Mandatory.
|
||||||
city: "std:080"
|
city: "std:080"
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ app:
|
|||||||
# Mandatory.
|
# Mandatory.
|
||||||
registryUrl: REGISTRY_URL
|
registryUrl: REGISTRY_URL
|
||||||
auth: true
|
auth: true
|
||||||
uniqueKey: "BPP_SUBSCRIBER_ID_KEY"
|
uniqueKey: "BPP_SUBSCRIBER_KEY_ID"
|
||||||
|
|
||||||
# Mandatory.
|
# Mandatory.
|
||||||
city: "std:080"
|
city: "std:080"
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ app:
|
|||||||
# Mandatory.
|
# Mandatory.
|
||||||
registryUrl: REGISTRY_URL
|
registryUrl: REGISTRY_URL
|
||||||
auth: true
|
auth: true
|
||||||
uniqueKey: "BPP_SUBSCRIBER_ID_KEY"
|
uniqueKey: "BPP_SUBSCRIBER_KEY_ID"
|
||||||
|
|
||||||
# Mandatory.
|
# Mandatory.
|
||||||
city: "std:080"
|
city: "std:080"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ fi
|
|||||||
if [[ $1 ]]; then
|
if [[ $1 ]]; then
|
||||||
registry_url=$1
|
registry_url=$1
|
||||||
bap_subscriber_id=$2
|
bap_subscriber_id=$2
|
||||||
bap_subscriber_id_key=$3
|
bap_subscriber_key_id=$3
|
||||||
bap_subscriber_url=$4
|
bap_subscriber_url=$4
|
||||||
else
|
else
|
||||||
if [[ $(uname -s) == 'Darwin' ]]; then
|
if [[ $(uname -s) == 'Darwin' ]]; then
|
||||||
@@ -79,7 +79,7 @@ if [[ $(uname -s ) == 'Darwin' ]];then
|
|||||||
"PUBLIC_KEY=$public_key"
|
"PUBLIC_KEY=$public_key"
|
||||||
"BAP_SUBSCRIBER_ID=$bap_subscriber_id"
|
"BAP_SUBSCRIBER_ID=$bap_subscriber_id"
|
||||||
"BAP_SUBSCRIBER_URL=$bap_subscriber_url"
|
"BAP_SUBSCRIBER_URL=$bap_subscriber_url"
|
||||||
"BAP_SUBSCRIBER_ID_KEY=$bap_subscriber_id_key"
|
"BAP_SUBSCRIBER_KEY_ID=$bap_subscriber_key_id"
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "Configuring BAP protocol server"
|
echo "Configuring BAP protocol server"
|
||||||
@@ -107,7 +107,7 @@ else
|
|||||||
["PUBLIC_KEY"]=$public_key
|
["PUBLIC_KEY"]=$public_key
|
||||||
["BAP_SUBSCRIBER_ID"]=$bap_subscriber_id
|
["BAP_SUBSCRIBER_ID"]=$bap_subscriber_id
|
||||||
["BAP_SUBSCRIBER_URL"]=$bap_subscriber_url
|
["BAP_SUBSCRIBER_URL"]=$bap_subscriber_url
|
||||||
["BAP_SUBSCRIBER_ID_KEY"]=$bap_subscriber_id_key
|
["BAP_SUBSCRIBER_KEY_ID"]=$bap_subscriber_key_id
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "Configuring BAP protocol server"
|
echo "Configuring BAP protocol server"
|
||||||
@@ -121,4 +121,4 @@ fi
|
|||||||
|
|
||||||
echo "Registering BAP protocol server on the registry"
|
echo "Registering BAP protocol server on the registry"
|
||||||
|
|
||||||
create_network_participant "$registry_url" "application/json" "$bap_subscriber_id" "$bap_subscriber_id_key" "$bap_subscriber_url" "$public_key" "$public_key" "$valid_from" "$valid_until" "$type"
|
create_network_participant "$registry_url" "application/json" "$bap_subscriber_id" "$bap_subscriber_key_id" "$bap_subscriber_url" "$public_key" "$public_key" "$valid_from" "$valid_until" "$type"
|
||||||
@@ -30,7 +30,7 @@ fi
|
|||||||
if [[ $1 ]]; then
|
if [[ $1 ]]; then
|
||||||
registry_url=$1
|
registry_url=$1
|
||||||
bpp_subscriber_id=$2
|
bpp_subscriber_id=$2
|
||||||
bpp_subscriber_id_key=$3
|
bpp_subscriber_key_id=$3
|
||||||
bpp_subscriber_url=$4
|
bpp_subscriber_url=$4
|
||||||
webhook_url=$5
|
webhook_url=$5
|
||||||
else
|
else
|
||||||
@@ -77,7 +77,7 @@ if [[ $(uname -s ) == 'Darwin' ]];then
|
|||||||
"PUBLIC_KEY=$public_key"
|
"PUBLIC_KEY=$public_key"
|
||||||
"BPP_SUBSCRIBER_URL=$bpp_subscriber_url"
|
"BPP_SUBSCRIBER_URL=$bpp_subscriber_url"
|
||||||
"BPP_SUBSCRIBER_ID=$bpp_subscriber_id"
|
"BPP_SUBSCRIBER_ID=$bpp_subscriber_id"
|
||||||
"BPP_SUBSCRIBER_ID_KEY=$bpp_subscriber_id_key"
|
"BPP_SUBSCRIBER_KEY_ID=$bpp_subscriber_key_id"
|
||||||
"WEBHOOK_URL=$webhook_url"
|
"WEBHOOK_URL=$webhook_url"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ else
|
|||||||
["PUBLIC_KEY"]=$public_key
|
["PUBLIC_KEY"]=$public_key
|
||||||
["BPP_SUBSCRIBER_URL"]=$bpp_subscriber_url
|
["BPP_SUBSCRIBER_URL"]=$bpp_subscriber_url
|
||||||
["BPP_SUBSCRIBER_ID"]=$bpp_subscriber_id
|
["BPP_SUBSCRIBER_ID"]=$bpp_subscriber_id
|
||||||
["BPP_SUBSCRIBER_ID_KEY"]=$bpp_subscriber_id_key
|
["BPP_SUBSCRIBER_KEY_ID"]=$bpp_subscriber_key_id
|
||||||
["WEBHOOK_URL"]=$webhook_url
|
["WEBHOOK_URL"]=$webhook_url
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -122,4 +122,4 @@ fi
|
|||||||
|
|
||||||
echo "Registering BPP protocol server on the registry"
|
echo "Registering BPP protocol server on the registry"
|
||||||
|
|
||||||
create_network_participant "$registry_url" "application/json" "$bpp_subscriber_id" "$bpp_subscriber_id_key" "$bpp_subscriber_url" "$public_key" "$public_key" "$valid_from" "$valid_until" "$type"
|
create_network_participant "$registry_url" "application/json" "$bpp_subscriber_id" "$bpp_subscriber_key_id" "$bpp_subscriber_url" "$public_key" "$public_key" "$valid_from" "$valid_until" "$type"
|
||||||
@@ -35,7 +35,7 @@ bap_client_port=5001
|
|||||||
bap_network_port=5002
|
bap_network_port=5002
|
||||||
|
|
||||||
bap_subscriber_id="bap-network"
|
bap_subscriber_id="bap-network"
|
||||||
bap_subscriber_id_key="bap-network-key"
|
bap_subscriber_key_id="bap-network-key"
|
||||||
bap_subscriber_url="http://bap-network:5002"
|
bap_subscriber_url="http://bap-network:5002"
|
||||||
bap_client_url="http://bap-client:5002"
|
bap_client_url="http://bap-client:5002"
|
||||||
|
|
||||||
@@ -48,6 +48,6 @@ bpp_client_port=6001
|
|||||||
bpp_network_port=6002
|
bpp_network_port=6002
|
||||||
|
|
||||||
bpp_subscriber_id="bpp-network"
|
bpp_subscriber_id="bpp-network"
|
||||||
bpp_subscriber_id_key="bpp-network-key"
|
bpp_subscriber_key_id="bpp-network-key"
|
||||||
bpp_subscriber_url="http://bpp-network:6002"
|
bpp_subscriber_url="http://bpp-network:6002"
|
||||||
webhook_url="http://sandbox-webhook:3005"
|
webhook_url="http://sandbox-webhook:3005"
|
||||||
|
|||||||
@@ -106,9 +106,9 @@ install_bap_protocol_server(){
|
|||||||
if [[ $1 ]];then
|
if [[ $1 ]];then
|
||||||
registry_url=$1
|
registry_url=$1
|
||||||
bap_subscriber_id=$2
|
bap_subscriber_id=$2
|
||||||
bap_subscriber_id_key=$3
|
bap_subscriber_key_id=$3
|
||||||
bap_subscriber_url=$4
|
bap_subscriber_url=$4
|
||||||
bash scripts/update_bap_config.sh $registry_url $bap_subscriber_id $bap_subscriber_id_key $bap_subscriber_url
|
bash scripts/update_bap_config.sh $registry_url $bap_subscriber_id $bap_subscriber_key_id $bap_subscriber_url
|
||||||
else
|
else
|
||||||
bash scripts/update_bap_config.sh
|
bash scripts/update_bap_config.sh
|
||||||
fi
|
fi
|
||||||
@@ -137,9 +137,9 @@ install_bpp_protocol_server_with_sandbox(){
|
|||||||
if [[ $1 ]];then
|
if [[ $1 ]];then
|
||||||
registry_url=$1
|
registry_url=$1
|
||||||
bpp_subscriber_id=$2
|
bpp_subscriber_id=$2
|
||||||
bpp_subscriber_id_key=$3
|
bpp_subscriber_key_id=$3
|
||||||
bpp_subscriber_url=$4
|
bpp_subscriber_url=$4
|
||||||
bash scripts/update_bpp_config.sh $registry_url $bpp_subscriber_id $bpp_subscriber_id_key $bpp_subscriber_url
|
bash scripts/update_bpp_config.sh $registry_url $bpp_subscriber_id $bpp_subscriber_key_id $bpp_subscriber_url
|
||||||
else
|
else
|
||||||
bash scripts/update_bpp_config.sh
|
bash scripts/update_bpp_config.sh
|
||||||
fi
|
fi
|
||||||
@@ -159,10 +159,10 @@ install_bpp_protocol_server(){
|
|||||||
if [[ $1 ]];then
|
if [[ $1 ]];then
|
||||||
registry_url=$1
|
registry_url=$1
|
||||||
bpp_subscriber_id=$2
|
bpp_subscriber_id=$2
|
||||||
bpp_subscriber_id_key=$3
|
bpp_subscriber_key_id=$3
|
||||||
bpp_subscriber_url=$4
|
bpp_subscriber_url=$4
|
||||||
webhook_url=$5
|
webhook_url=$5
|
||||||
bash scripts/update_bpp_config.sh $registry_url $bpp_subscriber_id $bpp_subscriber_id_key $bpp_subscriber_url $webhook_url
|
bash scripts/update_bpp_config.sh $registry_url $bpp_subscriber_id $bpp_subscriber_key_id $bpp_subscriber_url $webhook_url
|
||||||
else
|
else
|
||||||
bash scripts/update_bpp_config.sh
|
bash scripts/update_bpp_config.sh
|
||||||
fi
|
fi
|
||||||
@@ -248,9 +248,9 @@ else
|
|||||||
# Ask the user if they want to change the registry_url
|
# Ask the user if they want to change the registry_url
|
||||||
read -p "Do you want to change the registry_url? (${GREEN}Press Enter to accept default: $beckn_registry_url${NC}): " custom_registry_url
|
read -p "Do you want to change the registry_url? (${GREEN}Press Enter to accept default: $beckn_registry_url${NC}): " custom_registry_url
|
||||||
registry_url=${custom_registry_url:-$beckn_registry_url}
|
registry_url=${custom_registry_url:-$beckn_registry_url}
|
||||||
bap_subscriber_id_key=$bap_subscriber_id-key
|
bap_subscriber_key_id=$bap_subscriber_id-key
|
||||||
install_package
|
install_package
|
||||||
install_bap_protocol_server $registry_url $bap_subscriber_id $bap_subscriber_id_key $bap_subscriber_url
|
install_bap_protocol_server $registry_url $bap_subscriber_id $bap_subscriber_key_id $bap_subscriber_url
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
read -p "Enter BPP Subscriber ID: " bpp_subscriber_id
|
read -p "Enter BPP Subscriber ID: " bpp_subscriber_id
|
||||||
@@ -258,9 +258,9 @@ else
|
|||||||
# Ask the user if they want to change the registry_url
|
# Ask the user if they want to change the registry_url
|
||||||
read -p "Do you want to change the registry_url? (${GREEN}Press Enter to accept default: $beckn_registry_url${NC}): " custom_registry_url
|
read -p "Do you want to change the registry_url? (${GREEN}Press Enter to accept default: $beckn_registry_url${NC}): " custom_registry_url
|
||||||
registry_url=${custom_registry_url:-$beckn_registry_url}
|
registry_url=${custom_registry_url:-$beckn_registry_url}
|
||||||
bpp_subscriber_id_key=$bpp_subscriber_id-key
|
bpp_subscriber_key_id=$bpp_subscriber_id-key
|
||||||
install_package
|
install_package
|
||||||
install_bpp_protocol_server_with_sandbox $registry_url $bpp_subscriber_id $bpp_subscriber_id_key $bpp_subscriber_url
|
install_bpp_protocol_server_with_sandbox $registry_url $bpp_subscriber_id $bpp_subscriber_key_id $bpp_subscriber_url
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
read -p "Enter BPP Subscriber ID: " bpp_subscriber_id
|
read -p "Enter BPP Subscriber ID: " bpp_subscriber_id
|
||||||
@@ -270,9 +270,9 @@ else
|
|||||||
# Ask the user if they want to change the registry_url
|
# Ask the user if they want to change the registry_url
|
||||||
read -p "Do you want to change the registry_url? (${GREEN}Press Enter to accept default: $beckn_registry_url${NC}): " custom_registry_url
|
read -p "Do you want to change the registry_url? (${GREEN}Press Enter to accept default: $beckn_registry_url${NC}): " custom_registry_url
|
||||||
registry_url=${custom_registry_url:-$beckn_registry_url}
|
registry_url=${custom_registry_url:-$beckn_registry_url}
|
||||||
bpp_subscriber_id_key=$bpp_subscriber_id-key
|
bpp_subscriber_key_id=$bpp_subscriber_id-key
|
||||||
install_package
|
install_package
|
||||||
install_bpp_protocol_server $registry_url $bpp_subscriber_id $bpp_subscriber_id_key $bpp_subscriber_url $webhook_url
|
install_bpp_protocol_server $registry_url $bpp_subscriber_id $bpp_subscriber_key_id $bpp_subscriber_url $webhook_url
|
||||||
;;
|
;;
|
||||||
|
|
||||||
5)
|
5)
|
||||||
|
|||||||
Reference in New Issue
Block a user