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

Support existing access token when using UserCredentials auth type #870

Conversation

qcastel
Copy link
Contributor

@qcastel qcastel commented Sep 7, 2022

In Dataiku, we found a small optimisation of the UserCredentials auth type that we thought we could share with you guys.

Saving a bit of network calls to Google OAuth2 provider.

Fixes #869

@@ -341,7 +363,10 @@ private static GoogleCredentials configureCredentials(
}
if (credentials instanceof UserCredentials) {
return ((UserCredentials) credentials)
.toBuilder().setTokenServerUri(URI.create(tokenServerUrl)).build();
.toBuilder()
.setAccessToken(credentials.getAccessToken())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to do that, to workaround googleapis/google-auth-library-java#993

@medb medb changed the title #869 Support existing access token when using UserCredentials auth type Support existing access token when using UserCredentials auth type Sep 8, 2022
@qcastel
Copy link
Contributor Author

qcastel commented Oct 24, 2022

@medb any news on this one?

@qcastel
Copy link
Contributor Author

qcastel commented Sep 19, 2023

@medb Whats your view on this one? Want me to close it as wont do?

@qcastel qcastel closed this Dec 19, 2023
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.

Support existing access token when using UserCredentials auth type
1 participant