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:
parent
c92cc46db2
commit
e635be8961
2 changed files with 29 additions and 7 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue