GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - IntuitDeveloper/SampleOAuth2_UsingPythonClient: Django Sample app using Python OAuth client

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
SampleOAuth2_UsingPythonClient
SampleOAuth2_UsingPythonClient
 
 
app
app
 
 
static
static
 
 
views
views
 
 
.gitignore
.gitignore
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
db.sqlite3
db.sqlite3
 
 
manage.py
manage.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Rate your SampleYesNo

Python OAuth2 and OpenID sample using Client

This sample app is meant to provide working example of how to Connect with QuickBooks using Python Client.

Please note that while these examples work, features called out above are not intended to be taken and used in production business applications. In other words, this is not a seed project to be taken cart blanche and deployed to your production environment.

For example, certain concerns are not addressed at all in our samples (e.g. security, privacy, scalability). In our sample apps, we strive to strike a balance between clarity, maintainability, and performance where we can. However, clarity is ultimately the most important quality in a sample app.

Therefore there are certain instances where we might forgo a more complicated implementation (e.g. caching a frequently used value, robust error handling, more generic domain model structure) in favor of code that is easier to read. In that light, we welcome any feedback that makes our samples apps easier to learn from.

Getting Started

Clone the repository:

git clone https://github.com/IntuitDeveloper/SampleOAuth2_UsingPythonClient.git

Note: This sample has been developed with Python 3.6

Install dependencies:

cd SampleOAuth2_UsingPythonClient/
pip install -r requirements.txt 

Configure app

  1. Enter your app's Client ID, Client Secret, Redirect URL and app environment (production or sandbox) in settings.py.
  2. Make sure the same Redirect URL is entered in your Intuit developer app Keys tab under the right environment.
  3. To test Migration API, also enter OAuth1 credentials in the same file.

Launch your app:

python manage.py runserver

Launch URL http://localhost:8000/app

App Workflows

  1. OAuth flow followed by QBO API call
  2. OpenID flow followed by User Info API call
  3. Migration API to migrate tokens from OAuth1 to OAuth2
  4. Refresh and Revoke API for OAuth2/OpenID bearer_token

About

Django Sample app using Python OAuth client

Topics

djangointuit-oauthmigrationoauth2pythonquickbookssample

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

44 stars

Watchers

14 watching

Forks

26 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.