-
Notifications
You must be signed in to change notification settings - Fork 273
fix(gdch): support EC private keys #1896
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
Open
diegomarquezp
wants to merge
59
commits into
main
Choose a base branch
from
b/488439640
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+784
−216
Open
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
dc5b79c
fix: allow for ES algorithm in GdchCredentials
diegomarquezp 0c5e423
test: partially adapt tests
diegomarquezp 5851b3e
test: finish adjusting tests
diegomarquezp 258ac9d
chore: format
diegomarquezp e8511bb
fix: restore credential name
diegomarquezp a4d0f93
docs: restore license
diegomarquezp e3d5302
fix: restore removed code
diegomarquezp e6635c6
test: increase coverage
diegomarquezp cc49dba
test(gdch): parameterize test
diegomarquezp f58f593
test: remove unused var
diegomarquezp 42f2662
chore: remove unused throw clause
diegomarquezp 91a3751
test: parameterize more
diegomarquezp b83a511
fix: remove unused parameter
diegomarquezp 625741e
fix: make variables final as intended
diegomarquezp 1e0a7c3
fix: remove unused throw clause
diegomarquezp 24cd25d
fix: remove unused throw clause
diegomarquezp 027a242
fix: make OAuth2Credentials clock package private for production code
diegomarquezp a8b459b
fix: use non deprecated base 64 encoder
diegomarquezp 4e8af24
test: parameterize flagged tests
diegomarquezp f257a81
chore: format
diegomarquezp c523df2
test: fix assertion
diegomarquezp ed026a4
build: remove unused dependency
diegomarquezp 1528e76
test: run linux gce only on linux envs
diegomarquezp 7300e59
fix: sonarqube flags (use java.util.Base64)
diegomarquezp 382d8ae
fix: improve error message template
diegomarquezp c348ee1
fix: keep overload of "with audience" that takes an URI
diegomarquezp 6323455
fix: restore public getter of getApiAudience
diegomarquezp 1aa7715
docs: add javadoc for signing logic
diegomarquezp 4f69872
test: test private signature and decode methods
diegomarquezp f4b53ee
fix: add null and empty check for audience string
diegomarquezp b3085a2
docs: add javadoc for audience getters
diegomarquezp 39ef931
fix: use enum for possible algorithms
diegomarquezp 3003076
fix: use obsolete javadoc instead of @deprecated
diegomarquezp 36b7fa4
refactor: use OAuth2Utils validate methods in GdchCredentials
diegomarquezp 6805756
fix: restore GoogleAuthException throwing in GdchCredentials
diegomarquezp 212cb89
refactor: downgrade Pkcs8Algorithm and privateKeyFromPkcs8 to package…
diegomarquezp 8f23285
refactor: split parseBody into parseJson and parseQuery in test utili…
diegomarquezp 90fe11d
refactor: remove validation reflection by making signUsingEsSha256 pa…
diegomarquezp dcd97cb
test: use hardcoded string literal for gdch api audience in test
diegomarquezp 1c5e7bb
test: refactor to use assertThrows in GdchCredentialsTest and remove …
diegomarquezp 571c9ac
fix: add comment about EC algorithm support in GdchCredentials
diegomarquezp 6d713fe
fix: update GDCH audience error message to be more descriptive
diegomarquezp d005709
refactor: rename getApiAudienceString to getGdchAudience
diegomarquezp 0aa9ab9
fix: Remove unused import
diegomarquezp 3fe0ca5
docs: update GDCH audience getter javadocs
diegomarquezp 06982d4
test: add null-checks to builder and corresponding tests
diegomarquezp bd7af8d
refactor: consolidate token type constants using OAuth2Utils
diegomarquezp 583378e
refactor: throw GoogleAuthException for signing and transcoding errors
diegomarquezp 5f59678
docs: add javadoc to related test utils
diegomarquezp 8fefc7b
fix: use GoogleAuthException
diegomarquezp fa51f57
test: use assertThrows where applicable
diegomarquezp f0873d3
refactor: replace Preconditions with Strings.isNullOrEmpty for audien…
diegomarquezp 66f8342
fix: consistent exception message
diegomarquezp 5ec685d
Merge origin/main and resolve conflicts
diegomarquezp 4c75b1d
chore: format
diegomarquezp 6980520
test: use lowercase os name
diegomarquezp d0547e3
chore: address review comments for PR #1896
diegomarquezp 00ff824
chore: format
diegomarquezp a57def2
Finalizing GDCH credentials support by addressing reviewer comments
diegomarquezp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
274 changes: 242 additions & 32 deletions
274
oauth2_http/java/com/google/auth/oauth2/GdchCredentials.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.