Skip to content

Simple Python-based OAuth2 web client with connectors for Salesforce and GitHub

License

Notifications You must be signed in to change notification settings

cirruspath/python-oauth2-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python OAuth2 Middleware

A simple web server that initiates an OAuth2 request and saves the access token.

Installation

   $ python setup.py install

Start the server

You will need to configure your application client IDs and keys and store it a YAML file. It should look something like this:

github:
   consumerkey: GH_CLIENTID
   consumersecret: GH_CLIENTSECRET
salesforce:
   consumerkey: SF_CLIENTID
   consumersecret: SF_CLIENTID

Then we just need to tell the server where to find these credentials and start the webserver.

   $ export POM_SSL=/certificatedir (this step is optional)
   $ export POM_APPS=/myapps/keys.yaml
   $ pomserver 0.0.0.0 8000

Usage

Just point your browser to the web server and specify an authentication source. It should automatically redirect you.

After authenticating yourself, it will print out your session information.

Roadmap

  1. Store refresh token in user-configurable data store (i.e., Redis)
  2. Additional data sources (InsideSales, LinkedIn, Facebook, Twitter)

About

Simple Python-based OAuth2 web client with connectors for Salesforce and GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages