node-quickbooks icon indicating copy to clipboard operation
node-quickbooks copied to clipboard

oauth_problem

Open vikaschaubey57 opened this issue 6 years ago • 6 comments

i am facing an issue while accessing requestToken method.I am passing my clientid and clientSecret to the consumerId and consumerSecret keys in oauth and also have checked my callback url but i am still getting following error. { oauth_problem: 'parameter_rejected', oauth_parameters_rejected: 'oauth_consumer_key' }

vikaschaubey57 avatar Jan 15 '19 10:01 vikaschaubey57

@vikaschaubey57 from what i can gather the library uses Oauth v1 by default which was disabled. See the example for oauth2 here: https://github.com/mcohen01/node-quickbooks/tree/master/oauth2example

And modify the constructor call appropriately as done in that example.

blak3r avatar Jan 24 '19 06:01 blak3r

Is there any reason that this library isn't modified to utilize Oauth v2 by default?

aspickard avatar Feb 12 '19 16:02 aspickard

Backward compatibility. Existing Oauth v1 apps have until December 17, 2019 to migrate to Oauth v2 (https://developer.intuit.com/hub/blog/2018/12/20/oauth-1-0-deprecation-migrate-oauth-2-0-december-17-2019).

ljorgensen avatar Feb 12 '19 18:02 ljorgensen

The NPM documentation really should be updated to include this. Nowhere does it say that it's written with Oauth v1 in mind and nowhere does it show how to initialize it using v2.

nthornton2010 avatar Apr 02 '19 19:04 nthornton2010

Is there any way to use this module with AngularJS. I get this to work on its own using the oAuth2.0 example, however I still don't know how can I use this in a Angularjs/Nodejs Application. Or point to some resources?

codeTony22 avatar Apr 30 '19 16:04 codeTony22

PR to help with the documentation for oAuth 2: https://github.com/mcohen01/node-quickbooks/pull/139

YasharF avatar Jul 02 '19 15:07 YasharF