Build the OAuth redirect URL ourselves, rather than relying on undocumented Flask behavior
This commit is contained in:
parent
b410ecd164
commit
b7f487da42
3 changed files with 12 additions and 4 deletions
|
@ -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'])
|
Reference in a new issue