Skip to content

docs: fix link to client secrets format doc #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions google_auth_oauthlib/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'``"""
Expand Down Expand Up @@ -153,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"
Expand Down
6 changes: 2 additions & 4 deletions google_auth_oauthlib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down