Netsuite Token Based Authentication

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 114

  • @darsanak5345
    @darsanak5345 2 года назад +1

    Thank you.. that was wonderful explanation✌️

  • @kettenbach
    @kettenbach 5 лет назад +1

    Great video Shoaib! Thanks for sharing.

  • @DanielCodContent
    @DanielCodContent 2 года назад +1

    So usefull video , thanks

  • @anushagudivada6868
    @anushagudivada6868 5 лет назад

    How does this authentication string build can be done in external applciation, outside netsuite. Because mt REST url will be consumed outside Netsuite

  • @surendranathkanchela887
    @surendranathkanchela887 3 года назад

    @shoaib Mehmood I am getting below error in the postman after setting the Authorization generated from the suitelet.Please help me "error": {
    "code": "INVALID_REQUEST",
    "message": "The request could not be understood by the server due to malformed syntax."
    }

    • @nileshkumarkoli9476
      @nileshkumarkoli9476 3 года назад

      Hi @surendranath,
      This issue is due to recent update in Netsuite Authentication. The example Shoaib shown us here is with SHA1 but in new release (2021.1) Netsuite is using SHA 256.

  • @priyadambhe1097
    @priyadambhe1097 4 года назад

    As of 2021.1 nesuite Rest service for roles is going to deprecate. Can you suggest a way to get users role info contains dataCenter Url info.
    Right Now I am calling Rest service Url using Credentials.

  • @aslamparveez
    @aslamparveez 2 года назад

    Shoaib, I'm using this process to invoke a rest web service .However, I always get invalid login attempt 401 error. Any pointers will be appreciated

    • @shobipersonal
      @shobipersonal  2 года назад

      That has little difference, I am planning a video on that soon.

    • @aslamparveez
      @aslamparveez 2 года назад

      @@shobipersonal That will really help. Please let me know if you can help me online in this process for a few minutes to have it working. I currently have an integration with netsuit from our product and I'm badly struck at invoking RESt services using TBA or otherwise with client-credentials approach either...

    • @shobipersonal
      @shobipersonal  2 года назад

      @@aslamparveez Ping me at linked-in tomorrow, will try to spare some time. www.linkedin.com/in/shoaib-mehmood-56909310/

  • @Kabini05
    @Kabini05 4 года назад

    Hey Shoaib Mehmood am getting Invalid login attemt. {
    "error": {
    "code": "INVALID_LOGIN_ATTEMPT",
    "message": "Invalid login attempt."
    }
    }
    Please help in this.

  • @faridariamaulana2670
    @faridariamaulana2670 4 года назад

    hello @Shoaib Mehmood, sorry i want to ask basic question, is that consumer key, secret , token id and secret need to generate again every time we want to push data to netsuite with restlet?

    • @shobipersonal
      @shobipersonal  4 года назад

      No, you just use these first time, you need these to generate signature

    • @faridariamaulana2670
      @faridariamaulana2670 4 года назад +1

      @@shobipersonal thank you for your fast respose, so, i just meed to generate it again the way like in suitelet process? And it will be different result? Because when i trying to generate it again, the result is same oauth

    • @shobipersonal
      @shobipersonal  4 года назад

      @@faridariamaulana2670 it should not same, because timestamp and nonce is different.

    • @faridariamaulana2670
      @faridariamaulana2670 4 года назад

      @@shobipersonal oh i got it,, so correct me if im wrong, oauth_nonce is random string and oauth_timestamp is the current timestamp, so this 2 parameter will create oauth uniqe every time we generate it again?

    • @shobipersonal
      @shobipersonal  4 года назад

      @@faridariamaulana2670 exactly : ) You got it.

  • @shobipersonal
    @shobipersonal  6 лет назад +1

    Folks getting error ReferenceError: "CryptoJS" is not defined. (enc-base64-min.js#7), to resolve this issue please add the library files in following sequence :
    1)- hmac-sha1.js
    2)- enc-base64-min.js

    • @faridariamaulana2670
      @faridariamaulana2670 4 года назад

      sorry, im asking again :D, how to call this lib in your suitelet script :D

  • @peterlution
    @peterlution 4 года назад

    The filebin link is out of date. Would you mind to post again?

  • @ajaykumarmandloi3519
    @ajaykumarmandloi3519 2 года назад +1

    Thank you Man..

  • @coolstuff593
    @coolstuff593 6 лет назад +1

    Tried The suitelet to generate header every time this is showing invalid attempt. When tried through Postman Authorization header it worked. Even tried suitelet header still doesn't work

    • @shobipersonal
      @shobipersonal  6 лет назад

      Are you using your code OR the code i had shared ?

    • @coolstuff593
      @coolstuff593 6 лет назад

      Hi Shoaib, I am using my code
      and it is not working. I put the corresponding values as per videos

    • @shobipersonal
      @shobipersonal  6 лет назад

      Let me know if we connect via skype.

  • @priyadambhe1097
    @priyadambhe1097 4 года назад

    Also in 2020.1 I can see New fields in integration record. And in 2020.2 credential based calls have been depreciated. How can we use TBA authentication or OAuth 2.0 . For restlet calls ( from nesuite Context and from out of nesuite Context)

    • @shobipersonal
      @shobipersonal  4 года назад

      In 2020.2 you can call restlet from netsuite without any authentication if are already in Netsuite context, Oauth2.0 is not available for server to server connectivity yet. Have you watched this video i have explain oauth1.0 connectivity in this video, let me know what else you need. Thanks

    • @priyadambhe1097
      @priyadambhe1097 4 года назад

      @@shobipersonal thanks for your quick response....👍

  • @ArthurKatrushko
    @ArthurKatrushko 6 лет назад +1

    You are the best!

    • @maximmakarovsky4471
      @maximmakarovsky4471 6 лет назад

      hi can you tell me how to upload libraries to netsuite?) please(пожалуйста:))

  • @aswakbulls
    @aswakbulls 6 лет назад

    Hello @Shoaib Mehmood,
    Post man giving this error :
    {
    "error": {
    "code": "INVALID_LOGIN_ATTEMPT",
    "message": "Invalid login attempt."
    }
    }

    • @shobipersonal
      @shobipersonal  6 лет назад

      This means your credentials are not correct, OR the token is expired

  • @Chris-hh9zi
    @Chris-hh9zi 4 года назад

    Shoaib, you just saved me a LOT of time. I tried to implement TBA about a year ago, but couldn't figure it out. Went with NLAuth instead. Now that Netsuite has deprecated NLAuth, I *had* to figure out TBA today to make sure all our work scripts would start working again. I have a lot of scripts that use Google Sheets and pull data from Netsuite. With your source code, and video, I finally got it all working. THANK YOU! How can I send a bit of money your way?

    • @shobipersonal
      @shobipersonal  4 года назад +1

      Oh that is great that it worked for you. My youtube videos are totally free :) Enjoy. You made my day :).

  • @CharlesBastian
    @CharlesBastian 6 лет назад

    Any thoughts as to why this would always return the Invalid Login Attempt error? In NetSuite it also shows the InvalidSignature error. I was testing your method from outside of NetSuite, with the same results. So, I tried following along exactly with yours, using the suitelet, and I still get the same error. Maybe something was broken with 2018.2, or maybe it does not work in sandbox? Any thoughts on where to go next? (Note it does work using Node.js, but I'm trying to avoid doing that).

    • @shobipersonal
      @shobipersonal  6 лет назад +1

      Hi Charles, Thanks for checking this out. Please download the code again and just replace the suitelet file and then try , let me know if problem exists still.

    • @CharlesBastian
      @CharlesBastian 6 лет назад

      Hey Shoaib, I just tried that. There was no change. I'm honestly wondering if this is an issue using the Sandbox or 2018.2. Since I've found other solutions similar to this, that people say are working for them. But, none of them show 2018.2 or sandbox usage. :/

    • @shobipersonal
      @shobipersonal  6 лет назад +1

      Let me know if you could connect on skype, join me at skypeid : smehmoodskype

    • @CharlesBastian
      @CharlesBastian 6 лет назад

      I would have to install it (I never use it). What timezone are you in, & what times are you usually available? I'm in Central, and might have time this evening.

    • @markcrowl2805
      @markcrowl2805 6 лет назад +1

      HI. Did you find a fix to the authentication error? I'm getting the same thing.

  • @SettyPraveenPK
    @SettyPraveenPK 6 лет назад +1

    Thank you so much.

  • @nguyenthanhhung5278
    @nguyenthanhhung5278 3 года назад

    hello Shoaib, if I use REST API instead of REST, does its work?

    • @shobipersonal
      @shobipersonal  3 года назад

      Hi Nguyen, in theory , yes. Have you checked Netsuite bundle of Postman calls for rest APIs ?

    • @nguyenthanhhung5278
      @nguyenthanhhung5278 3 года назад

      @@shobipersonal yes, I did, I'm using OAuth 2.0 but the problem is token always reset after 7 days and needs manually to create for the other token. I try many ways to make it automatic but not work

  • @marcoestebancalderon9648
    @marcoestebancalderon9648 6 лет назад

    I got this error on the suitlet:
    ReferenceError: "CryptoJS" is not defined. (enc-base64-min.js#7)

    • @shobipersonal
      @shobipersonal  6 лет назад

      Add library files in following sequence :
      1)- hmac-sha1.js
      2)- enc-base64-min.js

  • @harshadabaviskar1523
    @harshadabaviskar1523 4 года назад

    Hi , I have generated new Token Based Authentication Header , still in postman API giving response Your session has timed out. Please log in again.Is this ok?

    • @shobipersonal
      @shobipersonal  4 года назад

      in Postman it happens some time, no need to worry if it is working on second attempt.

    • @harshadabaviskar1523
      @harshadabaviskar1523 4 года назад

      @@shobipersonal At second time also it is giving same message. And one another thing is can I do insert operation using restlet api

    • @shobipersonal
      @shobipersonal  4 года назад

      If you are talking about Suitetalk Restlet API, it is in beta currently but i believe it allows to insert data via post call.

  • @EricNord
    @EricNord Год назад

    Would love to see a similar example with OpenID Connect

    • @shobipersonal
      @shobipersonal  Год назад

      Will try to spare time for that.

    • @EricNord
      @EricNord Год назад

      @@shobipersonal I got it working today, let me know if I can help.

  • @bhaveshwebzlabz2726
    @bhaveshwebzlabz2726 5 лет назад

    Great video Shoaib! Please share this link again for me. I need this one

  • @amalacheruvu6653
    @amalacheruvu6653 5 лет назад

    Hello,It is saying No Authorization header , can u please resolve.

    • @shobipersonal
      @shobipersonal  5 лет назад

      How could we connect , let me know if you can connect via skype : my skypeid is smehmoodskype

  • @shaikhzoheb9319
    @shaikhzoheb9319 6 лет назад

    Not able to download the file from Filebin Error: "This bin expired 4 days ago."

    • @shobipersonal
      @shobipersonal  6 лет назад

      Please download from this link : drive.google.com/file/d/1HC6nCJjm8qCOQiwffgHJvJqMB_sNNkkp

  • @reachjai
    @reachjai 6 лет назад +1

    Thanks you

  • @arvindshanker
    @arvindshanker 4 года назад

    Thanks for the video i am not able to still connect after watching and following your video from mulesoft do you have sometime to look at it and i like to explore other opp pls let me know

    • @shobipersonal
      @shobipersonal  4 года назад

      What error are you getting ?

    • @arvindshanker
      @arvindshanker 4 года назад

      @@shobipersonal not able test There was an error connecting to rest.netsuite.com/app/site/hostine/restlet.nl?script=454&deploy=1&oauth_consumer_key=449ef9050c1a3aaa9893de7318db5e4e3db069788a49a28e885ca8d8ffa78ffa&oauth_token=079b3061b890e1772688c882690959b1d80bf2a47b558662b88033690f87e237&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1587137821&oauth_nonce=qDCmt5Tz500&oauth_version=1.0&oauth_signature=qotSMo4I+xXodTsB7dKRtuItpWs=.

    • @shobipersonal
      @shobipersonal  4 года назад +1

      @@arvindshanker join me at smehmoodskype

    • @arvindshanker
      @arvindshanker 4 года назад

      Shoaib Mehmood sorry did not see your message

  • @janhasselbring8531
    @janhasselbring8531 5 лет назад

    Does this still work? I keep getting a `Your session has timed out.`

    • @shobipersonal
      @shobipersonal  5 лет назад

      Yes it should work, please check your credentials, I will upload a simpler version for Token Based Testing Soon

    • @janhasselbring8531
      @janhasselbring8531 5 лет назад

      @@shobipersonal Thanks for the quick response

    • @janhasselbring8531
      @janhasselbring8531 5 лет назад

      @@shobipersonal Also, are you familiar with PHP?

    • @janhasselbring8531
      @janhasselbring8531 5 лет назад

      @@shobipersonal I double checked the credentials and it's still telling me that the session has timed out

  • @srinath29devkate
    @srinath29devkate 5 лет назад

    It is working. But, I need a single token for unlimited requests is it possible?

    • @srinath29devkate
      @srinath29devkate 5 лет назад

      Okay, I got it i was not familiar with OAuth authorization. now it's working perfectly thanks nice video.

  • @shujathbaig9506
    @shujathbaig9506 5 лет назад

    Can you please share the script that you deployed on NetSuite?

    • @shobipersonal
      @shobipersonal  5 лет назад

      drive.google.com/file/d/1HC6nCJjm8qCOQiwffgHJvJqMB_sNNkkp/view

  • @maximmakarovsky4471
    @maximmakarovsky4471 6 лет назад

    Hi thank you for the guide. can you just please tell me how to add libraries to Netsuite? thank you

    • @shobipersonal
      @shobipersonal  6 лет назад

      Please refer Netsuite help , SuiteCloud--> SuiteScript section

    • @maximmakarovsky4471
      @maximmakarovsky4471 6 лет назад

      @@shobipersonal hi yeap i already solved it. Thanks

  • @rehannawaz5477
    @rehannawaz5477 5 лет назад

    can you please make a video on how to post data into the netsuite from external web application. if anyone know please reply me.. thank you

    • @shobipersonal
      @shobipersonal  5 лет назад

      stackoverflow.com/questions/19253201/passing-html-form-data-to-a-netsuite-form

  • @anmolpanwar5553
    @anmolpanwar5553 5 лет назад

    Hello ..could u please give me the content that are using in restlet api

    • @shobipersonal
      @shobipersonal  5 лет назад

      Which contents, are you asking for code ?

    • @anmolpanwar5553
      @anmolpanwar5553 5 лет назад

      @@shobipersonal how u created restlet api?

    • @anmolpanwar5553
      @anmolpanwar5553 5 лет назад

      {
      "error": {
      "code": "INVALID_LOGIN_ATTEMPT",
      "message": "Invalid login attempt."
      }
      }

  • @shravankulkarni1970
    @shravankulkarni1970 5 лет назад

    It is saying No Authorization header , can u please resolve

    • @shobipersonal
      @shobipersonal  5 лет назад

      can you share your code in zip file, join me at skype : smehmoodskype

    • @shravankulkarni1970
      @shravankulkarni1970 5 лет назад

      @@shobipersonal any other medium other than skype

    • @shobipersonal
      @shobipersonal  5 лет назад

      @@shravankulkarni1970 What channel we could use for screen share , i believe you are using my code and using your credentials , right ?