Skip to content

Commit e8e5dbb

Browse files
authored
docs: fix links to installed app, client secrets docs (#86)
Closes #85
1 parent 4f9be63 commit e8e5dbb

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

google_auth_oauthlib/flow.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Flow(object):
8888
from the `Google API Console`_.
8989
9090
.. _client secrets file:
91-
https://developers.google.com/identity/protocols/OAuth2WebServer
91+
https://developers.google.com/identity/protocols/oauth2/web-server
9292
#creatingcred
9393
.. _Google API Console:
9494
https://console.developers.google.com/apis/credentials
@@ -119,8 +119,8 @@ def __init__(
119119
autogenerate_code_verifier (bool): If true, auto-generate a
120120
code_verifier.
121121
.. _client secrets:
122-
https://developers.google.com/api-client-library/python/guide
123-
/aaa_client_secrets
122+
https://github.com/googleapis/google-api-python-client/blob
123+
/master/docs/client-secrets.md
124124
"""
125125
self.client_type = client_type
126126
"""str: The client type, either ``'web'`` or ``'installed'``"""
@@ -153,8 +153,8 @@ def from_client_config(cls, client_config, scopes, **kwargs):
153153
format.
154154
155155
.. _client secrets:
156-
https://developers.google.com/api-client-library/python/guide
157-
/aaa_client_secrets
156+
https://github.com/googleapis/google-api-python-client/blob/
157+
master/docs/client-secrets.md
158158
"""
159159
if "web" in client_config:
160160
client_type = "web"
@@ -357,8 +357,7 @@ class InstalledAppFlow(Flow):
357357
response, such as using an embedded web view.
358358
359359
.. _Installed Application Authorization Flow:
360-
https://developers.google.com/api-client-library/python/auth
361-
/installed-app
360+
https://github.com/googleapis/google-api-python-client/blob/master/docs/oauth-installed.md
362361
"""
363362

364363
_OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob"

google_auth_oauthlib/helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def session_from_client_config(client_config, scopes, **kwargs):
5151
oauthlib session and the validated client configuration.
5252
5353
.. _client secrets:
54-
https://developers.google.com/api-client-library/python/guide
55-
/aaa_client_secrets
54+
https://github.com/googleapis/google-api-python-client/blob/master/
55+
docs/client-secrets.md
5656
"""
5757

5858
if "web" in client_config:
@@ -89,8 +89,8 @@ def session_from_client_secrets_file(client_secrets_file, scopes, **kwargs):
8989
oauthlib session and the validated client configuration.
9090
9191
.. _client secrets:
92-
https://developers.google.com/api-client-library/python/guide
93-
/aaa_client_secrets
92+
https://github.com/googleapis/google-api-python-client/blob/master/
93+
docs/client-secrets.md
9494
"""
9595
with open(client_secrets_file, "r") as json_file:
9696
client_config = json.load(json_file)

0 commit comments

Comments
 (0)