From c16695be309fa77978e47995b8dbb3a1f8779788 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Wed, 19 Aug 2020 09:42:26 -0700 Subject: [PATCH 1/2] docs: fix link to installed-app documentation Closes #85 --- google_auth_oauthlib/flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google_auth_oauthlib/flow.py b/google_auth_oauthlib/flow.py index 79f2319..cb86874 100644 --- a/google_auth_oauthlib/flow.py +++ b/google_auth_oauthlib/flow.py @@ -354,8 +354,7 @@ class InstalledAppFlow(Flow): response, such as using an embedded web view. .. _Installed Application Authorization Flow: - https://developers.google.com/api-client-library/python/auth - /installed-app + https://github.com/googleapis/google-api-python-client/blob/master/docs/oauth-installed.md """ _OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob" From b6ff3b2ce48629ac2c9c84bc60254fcada07eaef Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Tue, 25 Aug 2020 14:38:31 +0000 Subject: [PATCH 2/2] docs: fix link to client secrets --- google_auth_oauthlib/flow.py | 10 +++++----- google_auth_oauthlib/helpers.py | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/google_auth_oauthlib/flow.py b/google_auth_oauthlib/flow.py index cb86874..747a041 100644 --- a/google_auth_oauthlib/flow.py +++ b/google_auth_oauthlib/flow.py @@ -88,7 +88,7 @@ class Flow(object): from the `Google API Console`_. .. _client secrets file: - https://developers.google.com/identity/protocols/OAuth2WebServer + https://developers.google.com/identity/protocols/oauth2/web-server #creatingcred .. _Google API Console: https://console.developers.google.com/apis/credentials @@ -119,8 +119,8 @@ def __init__( autogenerate_code_verifier (bool): If true, auto-generate a code_verifier. .. _client secrets: - https://developers.google.com/api-client-library/python/guide - /aaa_client_secrets + https://github.com/googleapis/google-api-python-client/blob + /master/docs/client-secrets.md """ self.client_type = client_type """str: The client type, either ``'web'`` or ``'installed'``""" @@ -153,8 +153,8 @@ def from_client_config(cls, client_config, scopes, **kwargs): format. .. _client secrets: - https://developers.google.com/api-client-library/python/guide - /aaa_client_secrets + https://github.com/googleapis/google-api-python-client/blob/ + master/docs/client-secrets.md """ if "web" in client_config: client_type = "web" diff --git a/google_auth_oauthlib/helpers.py b/google_auth_oauthlib/helpers.py index 49a39e4..bc09319 100644 --- a/google_auth_oauthlib/helpers.py +++ b/google_auth_oauthlib/helpers.py @@ -51,8 +51,8 @@ def session_from_client_config(client_config, scopes, **kwargs): oauthlib session and the validated client configuration. .. _client secrets: - https://developers.google.com/api-client-library/python/guide - /aaa_client_secrets + https://github.com/googleapis/google-api-python-client/blob/master/ + docs/client-secrets.md """ if "web" in client_config: @@ -89,8 +89,8 @@ def session_from_client_secrets_file(client_secrets_file, scopes, **kwargs): oauthlib session and the validated client configuration. .. _client secrets: - https://developers.google.com/api-client-library/python/guide - /aaa_client_secrets + https://github.com/googleapis/google-api-python-client/blob/master/ + docs/client-secrets.md """ with open(client_secrets_file, "r") as json_file: client_config = json.load(json_file)