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

If the bootstrap file is very large, the access token expires during a random batch download #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

decrypto27
Copy link

@decrypto27 decrypto27 commented Apr 20, 2019

CAUTION: The credentials need to be set in the credentials.yml before usage.

This happens if we are using the examples for fetching the feed data. All in all, it is a useful change and makes the feed fetching a bit more resilient.

…downloading in a random batch. Added code for access token refresh
@decrypto27 decrypto27 force-pushed the accessTokenRefreshInFlight branch from 686f46f to 9bb8ef4 Compare April 20, 2019 13:51
String token = "foobar";
try {
credentialLoader.loadCredentials();
token = credentialLoader.getOauthResponse().getAccessToken().get().getToken();
Copy link

@danie20 danie20 May 6, 2019

Choose a reason for hiding this comment

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

Prefer to check with expire time and add logic to get token.
credentialLoader.getOauthResponse().getAccessToken().get().getExpiresOn()

Copy link
Author

Choose a reason for hiding this comment

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

ok. will make the required changes.

@danie20
Copy link

danie20 commented May 6, 2019

need to update pom version

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.

2 participants