Different Ways to Make OAuth API Calls
Call via Internal OAuth API Endpoint Basic Authentication
This call uses the username and password pair in oauth-authenticator-secret and is for Boomi Cloud API Management - Local Edition 4.x backward compatibility.
This approach is deprecated, instead use the public key authentication explained below.
curl -v -d '{"id":1,"method":"oauth2.createAccessToken","params":
{"service_key":"m9f.....uw3","client":
{"client_id":"yq7...qa6x","client_secret":"A...a"},"token_data":
{"grant_type":"implicit"},"uri":
{"redirect_uri":"https://some.com/cb"},"user_context":"testUser1455730448397"},"jsonrpc":"2.0"}'
'https://api.mashery.com:8083/v2/json-rpc' -u root:changeme -k
Call via Proxied OAuth API Endpoint with Public Key Authentication
This call is introduced in Boomi Cloud API Management Local Edition 5.x. It uses the URL path /oauth/authorization and publicKeyName and publicKeyValue pair in Values.yaml (refer to known issue: EIN-22802), along with the URL parameter string setting in the proxy endpoint.
You do not need to specify any credentials (username/password) in the curl commands.
curl -v -d '{"id":1,"method":"oauth2.createAccessToken","params":
{"service_key":"m9f...uw3","client":
{"client_id":"yq7...a6x","client_secret":"A...a"},"token_data":
{"grant_type":"implicit"},"uri":
{"redirect_uri":"https://some.com/cb"},"user_context":"testUser1455730448397"},"jsonrpc":"2.0"}' -
H 'Content-Type: application/json' 'http://api.mashery.com/oauth/authorization/?api_
key=8qa...dg3'
Sample Proxy Endpoint Setup with publicKeyName/publicKeyValue Parameter String in Tethered/Untethered
The following is an example of settings of a proxied OAuth API endpoint on the Call Transformation page for 6.2.0 version of Boomi Cloud API Management - Local Edition:

In the above OAuth API endpoint setup on the Call Transformation page:
-
The service URL is set to
/v2/json-rpcand can either be sent with HTTP or HTTPS. -
The parameters to append is empty.
-
The protocol and IP address of the Origin Endpoint correspond to the service IP address.
When configuring Domain(s)/IP Address(es) settings for the OAuth endpoint on the Call Transformations page, ensure you enter the following localhost value based on the version of Boomi Cloud API Management - Local Edition you are using:
- In LE v6.0.0 and v6.1.0, enter
localhost:8083. - In LE v6.2.0, enter
trafficmanager-svcIPEXTERNAL-IP:8083