Can OAuth 2.0 be used for long-term integrations?

From what I’ve been able find in the Netsuite documentation, it seems that Netsuite’s implementation of OAuth 2.0 requires a manual re-authentication every 7 days when the refresh token expires. Is there any way to get around this limitation? I would like to be able to automate the retrieval of new refresh tokens so that an administrator only needs to set up the integration’s authentication once and the software integrating to Netsuite handles the rest.

Rookie Asked on May 7, 2020 in SuiteTalk.

To piggy back off this question, since the manual re-authentication every 7 days requires a user to enter a valid Username/Password, does Oauth 2.0 present the same drawback that NLauth had? Basically, if the integration application automated sending the Username and Password every 7 days, that application would still need to update the NetSuite password after it expires (180 days) correct? If this is the case, I would assume that OAuth 1.0 would be the preferred method for an integration that is setup to run in the background without any user interaction. Even though you generate the Token ID/Secret associated with a User/Role, as long as that User stays active, the Oauth 1 Client ID, Client Secret, Token ID, and Token secret should never expire.

 

Any/all feedback is appreciated!

on November 17, 2020.

Hi,

I am running NetSuite version 2021.1 with the Beta REST API enabled.  I have a working proof of concept of using the REST APIs with OAuth2 with a user available to authorize the request when the access token expires using the authorization URL.

I would also like to use OAuth2 for long-term system integrations via cron jobs where a user is not available for authorization.  I thought OIDC was the answer.  However, I have yet to get it working.

My questions are

  1. Does NetSuite 2021.1 support OAuth2 long-term (meaning no user available when the job runs and no password expiration) system-to-system integration?
  2. If so, is OIDC part of the solution or are my expectations wrong?

As mentioned above by the previous poster on this subject, any feedback or insight is appreciated.

on April 21, 2021.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor