Skip to content

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

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