Build the OAuth redirect URL ourselves, rather than relying on undocumented Flask behavior

This commit is contained in:
Joseph Schorr 2015-09-01 15:03:46 -04:00
parent b410ecd164
commit b7f487da42
3 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,3 @@
def get_app_url(config):
""" Returns the application's URL, based on the given config. """
return '%s://%s' % (config['PREFERRED_URL_SCHEME'], config['SERVER_HOSTNAME'])