Merge branch 'master' into proxy-to-alpha

Conflicts:
	config.py
This commit is contained in:
Martyn Inglis
2016-01-19 14:11:20 +00:00
4 changed files with 30 additions and 33 deletions

View File

@@ -46,7 +46,14 @@ def requires_auth():
def fetch_client(client):
return {
"client": client,
"secret": get_unsigned_secret(client)
}
from flask import current_app
if client == current_app.config.get('ADMIN_CLIENT_USER_NAME'):
return {
"client": client,
"secret": current_app.config.get('ADMIN_CLIENT_SECRET')
}
else:
return {
"client": client,
"secret": get_unsigned_secret(client)
}