Repository: singingwolfboy/flask-dance

Issue:
Google scope rename
All of a sudden I'm getting bugs in production with the following warning:
```
Warning: Scope has changed from "profile email" to "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile".
```

It looks like we need to update https://github.com/singingwolfboy/flask-dance/blob/master/flask_dance/contrib/google.py#L56 and https://github.com/singingwolfboy/flask-dance/blob/master/docs/quickstarts/google.rst accordingly.



Discussion:

Patch:
diff --git a/flask_dance/contrib/google.py b/flask_dance/contrib/google.py
index d478700..d3f3cdd 100644
--- a/flask_dance/contrib/google.py
+++ b/flask_dance/contrib/google.py
@@ -27,7 +27,7 @@ def make_google_blueprint(
         client_id (str): The client ID for your application on Google
         client_secret (str): The client secret for your application on Google
         scope (str, optional): comma-separated list of scopes for the OAuth token.
-            Defaults to the "profile" scope.
+            Defaults to the "https://www.googleapis.com/auth/userinfo.profile" scope.
         offline (bool): Whether to request `offline access
             <https://developers.google.com/accounts/docs/OAuth2WebServer#offline>`_
             for the OAuth token. Defaults to False
@@ -53,7 +53,7 @@ def make_google_blueprint(
     :rtype: :class:`~flask_dance.consumer.OAuth2ConsumerBlueprint`
     :returns: A :ref:`blueprint <flask:blueprints>` to attach to your Flask app.
     """
-    scope = scope or ["profile"]
+    scope = scope or ["https://www.googleapis.com/auth/userinfo.profile"]
     authorization_url_params = {}
     if offline:
         authorization_url_params["access_type"] = "offline"


Test patch:
diff --git a/tests/contrib/test_google.py b/tests/contrib/test_google.py
index b75c30a..c96c027 100644
--- a/tests/contrib/test_google.py
+++ b/tests/contrib/test_google.py
@@ -16,7 +16,7 @@ def test_blueprint_factory():
         redirect_to="index",
     )
     assert isinstance(google_bp, OAuth2ConsumerBlueprint)
-    assert google_bp.session.scope == ["profile"]
+    assert google_bp.session.scope == ["https://www.googleapis.com/auth/userinfo.profile"]
     assert google_bp.session.base_url == "https://www.googleapis.com/"
     assert google_bp.session.client_id == "foo"
     assert google_bp.client_secret == "bar"