intuitdeveloper / oauth2pythonsampleapp Goto Github PK
View Code? Open in Web Editor NEWPython sample app for OAuth2
License: Apache License 2.0
Python sample app for OAuth2
License: Apache License 2.0
Just a single script. Not sure why the sample needs to be so complicated.
I created new app named 'xxx-dev' at INTUIT about 6 days ago.
I followed the instruction and i enabled "Quickbooks Accounting" and "Quickbooks Payments" on App Settings page.
And i was implementing Quickbooks Online Authentication in my Rails app using my Client ID and Client Secret.
I was using OAuth2 but i get error continuosly.
So i tried this sample app but i get error too.
They say that "We're sorry! We are experiencing some problems. Please try again later.".
Looking forward your help.
When pip installing the requirements on windows 10 I got the following error from Pycrypto install on python_jose==1.3.2:
Command "C:\Users\Zakaria\AppData\Local\Programs\Python\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Zakaria\\AppData\\Local\\Temp\\pip-build-76zw3133\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Zakaria\AppData\Local\Temp\pip-kgjmts0_-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Zakaria\AppData\Local\Temp\pip-build-76zw3133\pycrypto\
The solution is to use a newer version of python-jose (I used v2.0.2). Tested with it installed and everything ran fine.
See here for more on this:
This could be because I am new to integrating Oauth2, but I've followed the readme but can not make it past the line
elif state != get_CSRF_token(request): # validate against CSRF attacks
in the authCodeHandler view function. I've been trying with the Connect to Quickbooks button.
I can comment out this check, but then I am not validating against CSRF attacks, and this is probably insecure. Can anyone help me understand why my sandbox app cannot pass this validation?
Thanks
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.