示例#1
0
文件: server.py 项目: Doist/oauthist
def setup():
    configure(scopes=OAUTHIST_SCOPES)
    client = Client(CLIENT_ID,
                    client_type='web',
                    client_secret=CLIENT_SECRET,
                    redirect_urls=REDIRECT_URLS,
                    name='Test Client')
    client.save()
示例#2
0
def setup_module():
    scopes = ['user_ro', 'user_rw', 'projects_ro', 'projects_rw']
    oauthist.configure(scopes=scopes)