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
Modify DefaultCredentialsProvider to use reflection to access AE SDK #71
Conversation
Guys any comment on this? |
@garrettjonesgoogle and I should both review this. I will review it today. |
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.
Looks Good To Me. Perhaps break the exception cleanup into a separate PR?
* <p>Needed instead of constructor version to be compatible with JDK 1.5 which is required | ||
* until Andriod libraries can update to JDK 1.6 | ||
*/ | ||
static <T extends Throwable> T exceptionWithCause(T exception, Throwable cause) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
That other change looks good. I'm still LGTM on this one. |
6ec89bb
to
72214fb
Compare
@anthmgoogle I rebased to catch latest changes. @garrettjonesgoogle do you also want to have a look? |
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.
Revision LGTM.
LGTM |
This PR does the following:
OAuth2Utils.exceptionWithCause
, use exception costructor insteadAppEngineCredentials
togoogle-auth-library-oauth2-http
that uses reflection to access AE SDKDefaultCredentialsProvider
to instantiate the newAppEngineCredentials
class/cc @garrettjonesgoogle @anthmgoogle