Skip to content Skip to sidebar Skip to footer

Flask-dance Error: Scope Has Changed

I am using flask-dance to authenticate to Google's servers. Config for flask-dance: from flask.ext.dance.contrib.google import make_google_blueprint google_blueprint = make_google_

Solution 1:

Nearest thing I can figure is there is a bug in the oauthlib plugin which I opened a bug report with already.

From the bug report, you can fix the issue by changing the file /oauth2/rfc6749/tokens.py in the plugin on Line 30 from self._new_scope = set(utils.scope_to_list(params.get('scope', ''))) to self._new_scope = set(utils.scope_to_list(params.get('scope', old_scope)))

Fix was merged: https://github.com/idan/oauthlib/pull/323

Post a Comment for "Flask-dance Error: Scope Has Changed"