NetSuite RESTlet OAuth 2.0 Authentication



  • Courtney Jordan Experience Strategy & Design Director Community moderator
    Celigo University Level 4: Legendary
    Awesome Follow-up
    Top Contributor

    Hi Michael Krueger,

    Sorry for the delay in this response and that you're running into this issue. This is very helpful information that we should add to our documentation, so I'm looking into this. So that we can get this resolved for you more quickly, could you open a support ticket on this?

  • Michael Krueger

    Hi Courtney, thank you for the response. I actually did open a ticket with support. The direction I was given from product development is that OAuth 2.0 is not advised as the method of authentication for custom RESTlets. Instead, the solution proposed was to create an HTTP connection to make a call to the API to utilize my existing connection to NetSuite (i.e. using the built-in NetSuite connection type). When this API call is made, we are able to specify the script and deployment ID of our custom RESTlet and leverage the authentication mechanism used by the built-in NetSuite connector when calling the RESTlet in our account.

    I've configured this solution and it does seem to work. I wish there were a little more "direct" method to configure this type of connection. Perhaps a connector specifically for calling custom RESTlets could be added to the product to simplify the configuration of such a connection. That being said, if this is the recommended approach, it would be nice if there was a documented solution for how to configure this. Others many run into this same question in the future, especially after the 2021.1 release when token-based authentication will be the only allowed method of authentication for RESTlets.

    Thank you again for the follow up!

  • Jorge Iriarte

    Would it be possible to share how this was done? I have the same requirement.
    Thank you,
    Joirge Iriarte

  • Kate Larson Senior UX Researcher Community moderator

    Jorge Iriarte
    Hi Joirge,
    I talked to the support representative who worked on Michael Krueger's case above and he recommends you work directly with Support on this configuration.


  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up

    FYI the RESTlet via proxy approach doesn't seem to support passing any parameters to the RESTlet. If this is true, it isn't really a solution for many cases.


Please sign in to leave a comment.