From dead63a56c8c3e0f30c0050e4f2a7adf3a766c82 Mon Sep 17 00:00:00 2001 From: Riccardo Murri Date: Mon, 8 Feb 2021 14:36:18 +0100 Subject: [PATCH 1/2] Fix link to "client secrets" format doc. --- 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 8196f9b..0bfc479 100644 --- a/google_auth_oauthlib/flow.py +++ b/google_auth_oauthlib/flow.py @@ -119,8 +119,7 @@ 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'``""" From a5e15ac5ce3fdd364143efd7a15ff45f9ed44ebf Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sat, 29 May 2021 15:08:53 +0000 Subject: [PATCH 2/2] update more broken links to client secrets doc --- google_auth_oauthlib/flow.py | 3 +-- google_auth_oauthlib/helpers.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/google_auth_oauthlib/flow.py b/google_auth_oauthlib/flow.py index f3bf121..dc48418 100644 --- a/google_auth_oauthlib/flow.py +++ b/google_auth_oauthlib/flow.py @@ -152,8 +152,7 @@ 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..7605c7f 100644 --- a/google_auth_oauthlib/helpers.py +++ b/google_auth_oauthlib/helpers.py @@ -51,8 +51,7 @@ 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 +88,7 @@ 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)