Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

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

fix: fix service account credentials createScopedRequired#601

Merged
arithmetic1728 merged 2 commits into
mastergoogleapis/google-auth-library-java:masterfrom
jwt_fixgoogleapis/google-auth-library-java:jwt_fixCopy head branch name to clipboard
Mar 18, 2021
Merged

fix: fix service account credentials createScopedRequired#601
arithmetic1728 merged 2 commits into
mastergoogleapis/google-auth-library-java:masterfrom
jwt_fixgoogleapis/google-auth-library-java:jwt_fixCopy head branch name to clipboard

Conversation

@arithmetic1728

@arithmetic1728 arithmetic1728 commented Mar 18, 2021

Copy link
Copy Markdown
Contributor

@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

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.

@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
Comment thread oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java Outdated
Comment thread oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java Outdated
@arithmetic1728 arithmetic1728 merged commit 0614482 into master Mar 18, 2021
@arithmetic1728 arithmetic1728 deleted the jwt_fix branch March 18, 2021 20:58
/** Returns whether the scopes are empty, meaning createScoped must be called before use. */
@Override
public boolean createScopedRequired() {
return scopes.isEmpty();

Copy link
Copy Markdown
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.