Add some sort of oauth.

This commit is contained in:
jakedt 2014-03-12 12:37:06 -04:00
parent 220649e579
commit 25ceb90fc6
13 changed files with 290 additions and 46 deletions

View file

@ -9,6 +9,7 @@ from peewee import (SqliteDatabase, create_model_tables, drop_model_tables,
from data.database import *
from data import model
from data.model import oauth
from app import app
@ -338,6 +339,8 @@ def populate_database():
org.stripe_id = TEST_STRIPE_ID
org.save()
oauth.create_application(org, 'http://localhost:8000/o2c.html', client_id='deadbeef')
model.create_robot('neworgrobot', org)
owners = model.get_organization_team('buynlarge', 'owners')