-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Default token expiry #67
Conversation
…ey are tightly coupled
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.
Sorry -- a few more nits, I'm pretty sure this is the last round!
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.
Thanks for persisting through this review cycle!
@djc It's no trouble at all - thank you for the rigorous review! I appreciate the commitment to quality. This is the first time I've submitted to an open-source project, so I'm excited to have done it :) |
Closes #66
GCloudAuthorizedUser::from_string
defaults the token'sexpiry_time
toNone
, which causesToken::has_expired
to always return false. This results inAuthenticationManager::get_token
never refreshing a token that was retrieved via aGCloudAuthorizedUser
. I have refactoredInnerToken
to store expiry time as anOffsetDateTime
instead of anOption<OffsetDateTime>
, and that will default to 1 hour in the future (3600 seconds).