Client Credential Flow
Get Token
POST <https://auth3.upbond.io/oauth/token>
Content-Type: application/x-www-form-urlencoded
audience=API_IDENTIFIER&grant_type=client_credentials&client_id=${account.clientId}&client_secret=YOUR_CLIENT_SECRETcurl --request POST \\
--url '<https://auth3.upbond.io/oauth/token>' \\
--header 'content-type: application/x-www-form-urlencoded' \\
--data 'audience=API_IDENTIFIER&grant_type=client_credentials&client_id=${account.clientId}&client_secret=YOUR_CLIENT_SECRET'var request = require("request");
var options = { method: 'POST',
url: '<https://auth3.upbond.io/oauth/token>',
headers: { 'content-type': 'application/x-www-form-urlencoded' },
form:
{ client_id: '${account.clientId}',
client_secret: 'YOUR_CLIENT_SECRET',
audience: 'API_IDENTIFIER',
grant_type: 'client_credentials' }
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});Request Parameters
Parameter
Description
Last updated
Was this helpful?