Updating risky countries in Auth Hub
search cancel

Updating risky countries in Auth Hub

book

Article ID: 392346

calendar_today

Updated On:

Products

VIP Authentication Hub

Issue/Introduction

While updating the risky country using PUT method, it adds only the mentioned country to the list and removes the previous risky countries.
 
Steps to reproduce the issue:
 
1. Call the GET method of API RiskyCountries to verify the current risk countries

Request: curl --location 'https://${SSP_FQDN}/{{tenantName}}/iarisk/v1/RiskyCountries'
 
Response:
{
    "countryCodes": [
        "zw",
        "af",
        "dz",
.
.
.
"ye",
        "zm",
        "ax"
]
}
 
2. Call the PUT method of API RiskyCountries add a new risky countries:

Request: curl --location --request PUT 'https://${SSP_FQDN}/{{tenantName}}/iarisk/v1/RiskyCountries'
--data '{
"countryCodes": [
"es"
  ]
}'
 
Response:
{
"countryCodes": [
"es"
    ]
}
 
3. Call the GET method of API RiskyCountries to verify the current risk countries

Request: curl --location 'https://${SSP_FQDN}/{{tenantName}}/iarisk/v1/RiskyCountries'
 
Response:
{
    "countryCodes": [
        "es"
]
}

Environment

VIP Authentication Hub 3.3.2

Resolution

To add a new country to an existing list using the PUT method, you must send the entire list, including the new one, as per the HTTP method definition.

Regarding the PATCH method to update the countries list, This is tracked by the PM team for future enhancement.