GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: fix service account credentials createScopedRequired by arithmetic1728 · Pull Request #601 · googleapis/google-auth-library-java

This repository was archived by the owner on May 12, 2026. It is now read-only.

Conversation

@arithmetic1728

@arithmetic1728 arithmetic1728 commented Mar 18, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fixes: GoogleCloudPlatform/java-docs-samples#4907 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@arithmetic1728
fix: fix service account credentials createScopedRequired
ea19a8b
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 18, 2021
@codecov

codecov Bot commented Mar 18, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #601 (8a23d96) into master (31ebe6e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #601   +/-   ##
=========================================
  Coverage     83.49%   83.49%           
- Complexity      599      600    +1     
=========================================
  Files            42       42           
  Lines          2708     2709    +1     
  Branches        288      288           
=========================================
+ Hits           2261     2262    +1     
  Misses          304      304           
  Partials        143      143           
Impacted Files Coverage Δ Complexity Δ
.../google/auth/oauth2/ServiceAccountCredentials.java 83.50% <100.00%> (+0.05%) 65.00 <1.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31ebe6e...8a23d96. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@arithmetic1728
arithmetic1728 marked this pull request as ready for review March 18, 2021 20:40
@arithmetic1728
arithmetic1728 requested review from a team and bshaffer March 18, 2021 20:40
elharo
elharo reviewed Mar 18, 2021
View reviewed changes
Comment thread oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

arithmetic1728
arithmetic1728 commented Mar 18, 2021
View reviewed changes
Comment thread oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@arithmetic1728
Update oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCre…
8a23d96
…dentialsTest.java
lesv
lesv approved these changes Mar 18, 2021
View reviewed changes
@arithmetic1728
arithmetic1728 merged commit 0614482 into master Mar 18, 2021
@arithmetic1728
arithmetic1728 deleted the jwt_fix branch March 18, 2021 20:58
bshaffer
bshaffer reviewed Mar 18, 2021
View reviewed changes
Comment thread oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
/** Returns whether the scopes are empty, meaning createScoped must be called before use. */
@Override
public boolean createScopedRequired() {
return scopes.isEmpty();

@bshaffer bshaffer Mar 18, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think without having defaultScopes.isEmpty() here as well, the Client Library for Storage will never use self-signed JWTs. And there may be more APIs like this.

This can be fixed in a future PR, however.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dzou dzou mentioned this pull request Mar 18, 2021
(testing pr) experimenting with changes to fix apiary client auth GoogleCloudPlatform/spring-cloud-gcp#400
Closed
@arithmetic1728 arithmetic1728 mentioned this pull request Mar 18, 2021
fix: follow up fix service account credentials createScopedRequired #605
Merged
@lesv lesv mentioned this pull request Mar 23, 2021
Google-Auth-Library-Java needs better tests #610
Closed
@release-please release-please Bot mentioned this pull request Jan 4, 2022
chore(main): release google-auth-library-java 1.0.0 #819
Closed
@release-please release-please Bot mentioned this pull request Aug 11, 2022
chore(main): release 1.11.0 #974
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@bshaffer bshaffer bshaffer left review comments
@elharo elharo elharo left review comments
@lesv lesv lesv approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@arithmetic1728 @bshaffer @elharo @lesv
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.