AuthScheme
Specifies the authentication method to use when connecting to NetSuite.
Possible Values
Basic, Token, OAuth, OAuthJWTData Type
string
Default Value
"OAuth"
Remarks
This property determines how the NetSuite authenticates with NetSuite.
Supported values are:
- OAuth: Uses standard OAuth 2.0 authentication, with dynamically generated tokens.
- Token: Uses Token-Based Authentication (TBA) with manually created tokens inside of NetSuite.
- OAuthJWT: Uses OAuth 2.0 with JSON Web Tokens (JWT) for server-to-server authentication. This option is supported with the SuiteQL schema.
- Basic (Deprecated): Uses a username and password to authenticate. This method is no longer supported for NetSuite accounts using API version 2020 or later.
The available authentication options depend on the Schema being used:
- SuiteTalk: Supports Token authentication only. Legacy API versions may support Basic.
- SuiteQL: Supports Token, OAuth, and OAuthJWT.