oauth field map to include lists to access nested response dicts

oauth authorize callback to use absolute url, needed by Facebook
This commit is contained in:
Matthew Scragg 2015-10-26 16:47:32 -05:00
parent c92cc46db2
commit e635be8961
2 changed files with 29 additions and 7 deletions

View file

@ -11,7 +11,7 @@ def oauth_failed(next_url):
@blueprint.route("/login/oauth/<provider>")
def login(provider):
return User.get_app(provider).authorize(callback=url_for('auth.oauth.callback', provider=provider))
return User.get_app(provider).authorize(callback=url_for('auth.oauth.callback', provider=provider, _external=True))
@blueprint.route('/login/oauth/<provider>/callback')