Received this error log message: Using NLAuth with...
# suitetalkapi
r
Received this error log message: Using NLAuth with a plaintext password is deprecated and no longer supported. This functionality is targeted for removal in NetSuite 2021.1. Please use the three-step TBA authorization flow or the OAuth 2.0 authorization code grant flow for authentication. This is the where it's happening in the script:
Copy code
var headers = {
                    'Content-Type': 'text/plain',
                    'User-Agent-x': 'SuiteScript-Call',
                    'Authorization': 'NLAuth nlauth_account=1062XXX,nlauth_email=XXX@XXX.net,nlauth_signature=XXXXXXXXXX,nlauth_role=3'
Not sure how the script should be changed?
b
sorta depends on what this script was doing, but its as the error says
NLAuth is no longer an option, choose another method of authentication
if someone was trying to be clever and using this to access a resource that normally requires a login cookie, then you are likely in for a lot more work