René's URL Explorer Experiment


Title: Add support for default credentials. by orestica · Pull Request #4 · googleapis/google-api-python-client · GitHub

Open Graph Title: Add support for default credentials. by orestica · Pull Request #4 · googleapis/google-api-python-client

X Title: Add support for default credentials. by orestica · Pull Request #4 · googleapis/google-api-python-client

Description: This pull request goes hand in hand with the following pull request: googleapis/oauth2client#6 Once these two pull requests are accepted and integrated into their respective repositories, a Google API call will be authenticated as simple as building the service like this: service = build("compute", "v1", credential=GoogleCredential.get_default_credential()) This will work when the code is being run on a VM inside Google Compute Engine, a Google App Engine application or on any other off-fabric platform (in this last case, a credentials file needs to be put together containing either user or service account credentials and an environment variable pointed to it OR a 'gcloud auth login' command needs to be run before using the default credentials).

Open Graph Description: This pull request goes hand in hand with the following pull request: googleapis/oauth2client#6 Once these two pull requests are accepted and integrated into their respective repositories, a Google ...

X Description: This pull request goes hand in hand with the following pull request: googleapis/oauth2client#6 Once these two pull requests are accepted and integrated into their respective repositories, a Google ...

Opengraph URL: https://github.com/googleapis/google-api-python-client/pull/4

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3101442d-cd67-940a-9b2e-05ce532842cb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8922:FFF8A:1B15A10:22A42C3:6991B87B
html-safe-nonceaf3184ea8a7dc2400a5579b7be900ab02b7af610a595108f636733fa64fc4faf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTIyOkZGRjhBOjFCMTVBMTA6MjJBNDJDMzo2OTkxQjg3QiIsInZpc2l0b3JfaWQiOiI2NTQ5NTg1NjQ0MzQwNjQ1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbda2008fe9a69c8898c9638d2c8bd2365cd2bf337b91e23e99918d041d4ed043
hovercard-subject-tagpull_request:15687053
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/googleapis/google-api-python-client/pull/4/files
twitter:imagehttps://avatars.githubusercontent.com/u/7377199?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7377199?s=400&v=4
og:image:altThis pull request goes hand in hand with the following pull request: googleapis/oauth2client#6 Once these two pull requests are accepted and integrated into their respective repositories, a Google ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id15749269
octolytics-dimension-repository_nwogoogleapis/google-api-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15749269
octolytics-dimension-repository_network_root_nwogoogleapis/google-api-python-client
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=googleapis%2Fgoogle-api-python-client
Reloadhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Reloadhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Reloadhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
googleapis https://patch-diff.githubusercontent.com/googleapis
google-api-python-clienthttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Fork 2.5k https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Star 8.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Code https://patch-diff.githubusercontent.com/googleapis/google-api-python-client
Issues 160 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues
Pull requests 22 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulls
Discussions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/discussions
Actions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/actions
Projects 0 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/projects
Security 0 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/security
Insights https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulse
Code https://patch-diff.githubusercontent.com/googleapis/google-api-python-client
Issues https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues
Pull requests https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulls
Discussions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/discussions
Actions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/actions
Projects https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/projects
Security https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/security
Insights https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2Fnew%2Fchoose
oresticahttps://patch-diff.githubusercontent.com/orestica
googleapis:masterhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/tree/master
orestica:masterhttps://patch-diff.githubusercontent.com/orestica/google-api-python-client/tree/master
Conversation 12 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4
Commits 11 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits
Checks 0 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/checks
Files changed https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Add support for default credentials. https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#top
Show all changes 11 commits https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
f9a722c Add credentials support for googleapiclient.discovery.build() method. Apr 29, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/f9a722cebdfc165b12525d2a6201aa689fb55715
846af4c Add a test for testing the new credential parameter added to function May 1, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/846af4c381570d18076ade6efb5b219c926d6ec1
da1bd65 Rename scopesRequired()->scopes_required() and May 2, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/da1bd65bfde48c971285baf2ecc0d9d7b2844bfb
e4f1afb Throw an exception in case a credential is provided when a service May 6, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/e4f1afb53206e1f5f4d21de0f6d4529a8c45b90d
adb78ab Do not throw an exception when credentials with no scopes are passed … May 12, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/adb78ab192bc3869cc52a960fe8b7bd0a202783b
bef598e Rename credential parameter of the build method: build(credential) -> May 17, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/bef598ee2a62f0fbc5e720933e1bd02b60d574a4
d62cfbb Applied Anthony's suggestions from his review of my code (first round). May 19, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/d62cfbbc9970c510f642b70046c746fbb236c2aa
cb7afd9 Merge branch 'master' of https://github.com/google/google-api-python-… May 22, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/cb7afd949eaa2e2328b3f9393b22d8fe61613d5f
fe30b42 Applied Craig's suggestions. May 29, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/fe30b42c4a6ac1c7f917498ae002862f76e3e33d
fed2f94 Add some comments to clarify the case when custome credentials / Default May 29, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/fed2f9497c2da3093681b9bfd3bae53aecb1555b
f564adc Refactor how the credentials are handled in the process of building a May 29, 2014 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/commits/f564adcae2925159776758ff061b08f6967861a0
Clear filters https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
discovery.py https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
test_discovery.py https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-497a7484da3a04385e7414af583a0b33f9ec8dc4875df7f9cc98e37fb360dc0e
googleapiclient/discovery.pyhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
View file https://patch-diff.githubusercontent.com/orestica/google-api-python-client/blob/f564adcae2925159776758ff061b08f6967861a0/googleapiclient/discovery.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F4%2Ffiles
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-b039ba2bb64e79cf4c77e4fe5a4b21a826172e8b7ae9be872fd2d46047c05cbb
tests/test_discovery.pyhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-497a7484da3a04385e7414af583a0b33f9ec8dc4875df7f9cc98e37fb360dc0e
View file https://patch-diff.githubusercontent.com/orestica/google-api-python-client/blob/f564adcae2925159776758ff061b08f6967861a0/tests/test_discovery.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-497a7484da3a04385e7414af583a0b33f9ec8dc4875df7f9cc98e37fb360dc0e
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/4/files#diff-497a7484da3a04385e7414af583a0b33f9ec8dc4875df7f9cc98e37fb360dc0e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.