intuitdeveloper / oauth2-nodejs Goto Github PK
View Code? Open in Web Editor NEWSample App acting as an OAuth2 client using Intuit APIs
License: Apache License 2.0
Sample App acting as an OAuth2 client using Intuit APIs
License: Apache License 2.0
I was wondering if there were any plans to remake this sample application using the intuit-oauth npm module. It would be very beneficial. Thanks!
{"cause":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.1","port":443},"code":"EUNAVAILABLE","popsicle":{"url":"https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer","method":"POST","headers":{"accept":"application/json, application/x-www-form-urlencoded","content-type":"application/x-www-form-urlencoded","user-agent":"https://github.com/blakeembrey/popsicle","content-length":"255","accept-encoding":"gzip,deflate"},"body":"code=AB11578550736WyDbKY57W5f8p8XIYJAMnEVsXKLuJ0J9n0TwY&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback&client_id=Q09Bw2FYC3fNNRSps9egSGzBHQkhn31ief55kizuwvwVePDQnM&client_secret=QxMPuYG4Cs0X69UAskHAea0IhgXoNUt7lvANfZ54","timeout":0,"response":null}}
Hello,
The documentation states:
When you request a fresh access token, always use the refresh token returned in the most recent token_endpoint response. Your previous refresh tokens expire 24 hours after you receive a new one.
Always use the current refresh_token when requesting a new access_token. A new refresh_token is returned and the previous refresh_token is expired. This new refresh_token now has a lifetime of 100 days.
However, when requesting a new access_token never returns a new refresh token, either in the oauth 2.0 playground test page or this sample app.
Hello! My co-engineer and I got this app working in this codebase but are getting this error when we moved the code to our actual app. Any thoughts? Can't find any good responses on the intuit developer portal. The issue did not occur when running this code base. We are trying to make the request from our server.
Access to XMLHttpRequest at 'https://appcenter.intuit.com/connect/oauth2?client_id=ABB8JQGKm8vuYkN4X5gDka2cyu7LRQ2tj8RwFVjlxSHB5I3vBm&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fapi%2Fquickbooks%2Fcallback&response_type=code&state=829cL7W6-kx4uU1q4zjiD1cYsyQ6oneLGMSE&scope=com.intuit.quickbooks.accounting' (redirected from 'http://localhost:3000/api/quickbooks/connect_handler') from origin 'http://localhost:3000/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is presen
When I click on API call, I get the following error message.
"error": "No realm ID. QBO calls only work if the accounting scope was passed!"
All I have changed in what is required in config.json, plus I changed the listening port to 3001 in app.js to match my redirectUri. Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.