Skip to content
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

Merged
merged 1 commit into from Oct 18, 2016

Conversation

mziccard
Copy link
Contributor

This PR does the following:

  • Remove OAuth2Utils.exceptionWithCause, use exception costructor instead
  • Add package-private AppEngineCredentials to google-auth-library-oauth2-http that uses reflection to access AE SDK
  • Modify DefaultCredentialsProvider to instantiate the new AppEngineCredentials class

/cc @garrettjonesgoogle @anthmgoogle

@mziccard
Copy link
Contributor Author

Guys any comment on this?

@anthmgoogle
Copy link
Contributor

@garrettjonesgoogle and I should both review this. I will review it today.

Copy link
Contributor

@anthmgoogle anthmgoogle left a 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.

@anthmgoogle
Copy link
Contributor

That other change looks good. I'm still LGTM on this one.

@mziccard
Copy link
Contributor Author

@anthmgoogle I rebased to catch latest changes. @garrettjonesgoogle do you also want to have a look?

Copy link
Contributor

@anthmgoogle anthmgoogle left a comment

Choose a reason for hiding this comment

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

Revision LGTM.

@garrettjonesgoogle
Copy link
Member

LGTM

@mziccard mziccard merged commit 3308841 into googleapis:master Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants