Products | Versions |
---|---|
TIBCO Cloud API Management - Local Edition | ML 5.1 and above versions - Untethered mode |
Since ML 5.x untethered mode is completely cut off from the cloud, we will not be able to use Mashery API key in untethered cluster setup for making Mashery API calls like generating OAuth tokens for instance. Hence there is a replacement of Mashery API key in ML untethered set up called as PAPI key thats built as part of manifest directory once the tml cluster is created. Let see how to access the PAPI Key and where to access it from.
{
"package_key_name": "your_api_key_for_v3_api",
"package_key_value": "7wevdpn289e9v4****ndqu6c"
}
{
"package_secret_name": "your_secret_for_v3_api",
"package_secret_value": "nbk27d***U"
}
You can use this PAPI key value in the OAuth token flow for ML untethered mode:
A sample call for create access token using the PAPI key is listed below:
curl -u <PAPI Key>:<PAPI Secret> -H "Host: api.<"sp_config_environment_domain_suffix value from papi properties file> "http://localhost:7080/v3/token" -d "grant_type=password&username=admin&password=*****&scope=<area uuid>"