-
Notifications
You must be signed in to change notification settings - Fork 229
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
feat: update retries and implement Retryable #750
Conversation
…r text credential source (#822) * fix: remove erroneous check for the subject token field name for text format in IdentityPoolCredentialSource * fix: case insensitive * fix: null check * fix: imports
oauth2_http/java/com/google/auth/oauth2/GoogleAuthException.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/GoogleAuthException.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/GoogleAuthException.java
Outdated
Show resolved
Hide resolved
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 need to spend a bit more time w/ your testing, but I'm generally favorable. If I didn't comment on Jeff's comment's, I probably agree with them. Even were I disagree, I'll defer to him if he insists.
ServiceAccountCredentials
constructor has way too many parameters and should be made into a builder pattern - especially since your breaking any contract anyway.
I want to spend a bit more time thinking through your tests, but I believe you've implemented what I read in the design docs.
oauth2_http/java/com/google/auth/oauth2/GoogleAuthException.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
Outdated
Show resolved
Hide resolved
oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java
Outdated
Show resolved
Hide resolved
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'm sending this early as I'm going to get lunch.
I found some stuff that you will want to change. I'm suggesting change to the form of the builder pattern that I ok'd yesterday - apologies - I should n't type on my phone. I'm ok if you don't want to do it. I'm unattached to my suggestions on names.
I'll pick up where I left off in an hour or so.
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.
Ignore my earlier comments. LGTM
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.
drive-by comment
|
||
package com.google.auth; | ||
|
||
// an interface to identify retryable errors |
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.
/** Retryable is an interface to identify retryable errors. */
This is PR fixes retries to token endpoint.
For more details on the feature: go/auth-correct-retry
Fixes #626