Skip to content

Commit 421ae37

Browse files
author
Jon Wayne Parrott
committed
Merge pull request googleapis#500 from jonparrott/fix-flask-docs
Fix flask_util docstrings concerning GOOGLE_OAUTH2_CLIENT_SECRETS_FILE
2 parents bf9b78f + 17d6230 commit 421ae37

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

oauth2client/contrib/flask_util.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
3636
app.config['SECRET_KEY'] = 'your-secret-key'
3737
38-
app.config['GOOGLE_OAUTH2_CLIENT_SECRETS_JSON'] = 'client_secrets.json'
38+
app.config['GOOGLE_OAUTH2_CLIENT_SECRETS_FILE'] = 'client_secrets.json'
3939
4040
# or, specify the client id and secret separately
4141
app.config['GOOGLE_OAUTH2_CLIENT_ID'] = 'your-client-id'
@@ -213,14 +213,14 @@ class UserOAuth2(object):
213213
214214
Configuration values:
215215
216-
* ``GOOGLE_OAUTH2_CLIENT_SECRETS_JSON`` path to a client secrets json
216+
* ``GOOGLE_OAUTH2_CLIENT_SECRETS_FILE`` path to a client secrets json
217217
file, obtained from the credentials screen in the Google Developers
218218
console.
219219
* ``GOOGLE_OAUTH2_CLIENT_ID`` the oauth2 credentials' client ID. This
220-
is only needed if ``GOOGLE_OAUTH2_CLIENT_SECRETS_JSON`` is not
220+
is only needed if ``GOOGLE_OAUTH2_CLIENT_SECRETS_FILE`` is not
221221
specified.
222222
* ``GOOGLE_OAUTH2_CLIENT_SECRET`` the oauth2 credentials' client
223-
secret. This is only needed if ``GOOGLE_OAUTH2_CLIENT_SECRETS_JSON``
223+
secret. This is only needed if ``GOOGLE_OAUTH2_CLIENT_SECRETS_FILE``
224224
is not specified.
225225
226226
If app is specified, all arguments will be passed along to init_app.
@@ -243,7 +243,7 @@ def init_app(self, app, scopes=None, client_secrets_file=None,
243243
app: A Flask application.
244244
scopes: Optional list of scopes to authorize.
245245
client_secrets_file: Path to a file containing client secrets. You
246-
can also specify the GOOGLE_OAUTH2_CLIENT_SECRETS_JSON config
246+
can also specify the GOOGLE_OAUTH2_CLIENT_SECRETS_FILE config
247247
value.
248248
client_id: If not specifying a client secrets file, specify the
249249
OAuth2 client id. You can also specify the
@@ -307,8 +307,8 @@ def _load_config(self, client_secrets_file, client_id, client_secret):
307307
except KeyError:
308308
raise ValueError(
309309
'OAuth2 configuration could not be found. Either specify the '
310-
'client_secrets_file or client_id and client_secret or set the'
311-
'app configuration variables '
310+
'client_secrets_file or client_id and client_secret or set '
311+
'the app configuration variables '
312312
'GOOGLE_OAUTH2_CLIENT_SECRETS_FILE or '
313313
'GOOGLE_OAUTH2_CLIENT_ID and GOOGLE_OAUTH2_CLIENT_SECRET.')
314314

0 commit comments

Comments
 (0)