NetSuite OAuth 2.0 Authentication for SuiteCloud Development Framework (SDF)

NetSuite OAuth 2.0 Authentication for SuiteCloud Development Framework (SDF) With the release of SuiteCloud SDK version 2024.2 (or 2.0.0 for @oracle/suitecloud-cli), NetSuite introduces OAuth 2.0 as the new standard for authentication in the SuiteCloud Development Framework (SDF). This update marks a significant shift from the previous methods of Browser-Based and Token-Based Authentication (TBA). Transition from… Continue reading NetSuite OAuth 2.0 Authentication for SuiteCloud Development Framework (SDF)

Converting credentials to base 64 formats for the API call (Access token retrieval)

The function converts the string combining the username and password to base 64 format and apply in the API call for generating the access token. Sample API request code snippet let accessTokenresponse = https.post({ url: AUTH_URL, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’, ‘Authorization’: ‘Basic ‘ + getBasicAuthorisation(credentialFetch), }, body: { ‘grant_type’: ‘client_credentials’, } }); /** * @description… Continue reading Converting credentials to base 64 formats for the API call (Access token retrieval)