Unlike mobile apps, a web-based app can only send the latitude and longitude of the user's location, not the country code. To enable your web app to use an Adaptive Rule whose condition contains a Countries list, you need to configure the Google Geocoding API. Once that configuration is done, the Nok Nok Authentication Server can get the country code from the latitude and longitude. You can perform this optional step post-installation.
To configure the Nok Nok Authentication Server to use the Google Geocoding API:
Set up a Google Cloud Project to enable the Geocoding API.
Create and restrict your API key for the Google Maps Platform. Give the Nok Nok Authentication Server access to your Google Geocoding API Account by adding the IP/host of the server to the list of Application restrictions.
Encrypt the API key using NNL_HOME/install/nnl-encrypt-password.sh.
For more information, see Step 4: Encrypt Credentials in the Linux installation instructions.
Use nnl-mgmt.sh to assign values to the tenant-specific property nnl.geo.coder.google.api.key:
./nnl-mgmt.sh properties set -tenantid <tenantID> -name nnl.geo.coder.google.api.key -value <Encrypted-API-key-value>