Skip to content

Instantly share code, notes, and snippets.

View davidbernick's full-sized avatar

David Bernick davidbernick

  • Broad Institute
  • Boston, MA
View GitHub Profile
@davidbernick
davidbernick / get_jwt.py
Created May 13, 2017 03:58
Getting JWT via google oauth
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.tools import run_flow,argparser
from oauth2client.file import Storage
import argparse,os
CLIENT_ID = '806222273987-v6882atb04c4pfl8n3279iacv33e9tt7.apps.googleusercontent.com'
CLIENT_SECRET = 'xxxxx'
REDIRECT_URL='https://yourwebapp/oauth2c/OAuthProxy.jsp'
CREDS_FILE = os.path.join(os.path.dirname(__file__), 'credentials.json')