@@ -29,7 +29,7 @@ def read_gbq(
29
29
index_col : str | None = None ,
30
30
col_order : list [str ] | None = None ,
31
31
reauth : bool = False ,
32
- auth_local_webserver : bool = False ,
32
+ auth_local_webserver : bool = True ,
33
33
dialect : str | None = None ,
34
34
location : str | None = None ,
35
35
configuration : dict [str , Any ] | None = None ,
@@ -63,7 +63,7 @@ def read_gbq(
63
63
reauth : bool, default False
64
64
Force Google BigQuery to re-authenticate the user. This is useful
65
65
if multiple accounts are used.
66
- auth_local_webserver : bool, default False
66
+ auth_local_webserver : bool, default True
67
67
Use the `local webserver flow`_ instead of the `console flow`_
68
68
when getting user credentials.
69
69
@@ -73,6 +73,12 @@ def read_gbq(
73
73
https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console
74
74
75
75
*New in version 0.2.0 of pandas-gbq*.
76
+
77
+ .. versionchanged:: 1.5.0
78
+ Default value is changed to ``True``. Google has deprecated the
79
+ ``auth_local_webserver = False`` `"out of band" (copy-paste)
80
+ flow
81
+ <https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowed-oob>`_.
76
82
dialect : str, default 'legacy'
77
83
Note: The default value is changing to 'standard' in a future version.
78
84
@@ -202,7 +208,7 @@ def to_gbq(
202
208
chunksize : int | None = None ,
203
209
reauth : bool = False ,
204
210
if_exists : str = "fail" ,
205
- auth_local_webserver : bool = False ,
211
+ auth_local_webserver : bool = True ,
206
212
table_schema : list [dict [str , str ]] | None = None ,
207
213
location : str | None = None ,
208
214
progress_bar : bool = True ,
0 commit comments