-
-
Notifications
You must be signed in to change notification settings - Fork 43
Default token expiry #67
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
Conversation
…ey are tightly coupled
djc
left a comment
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!
djc
left a comment
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_stringdefaults the token'sexpiry_timetoNone, which causesToken::has_expiredto always return false. This results inAuthenticationManager::get_tokennever refreshing a token that was retrieved via aGCloudAuthorizedUser. I have refactoredInnerTokento store expiry time as anOffsetDateTimeinstead of anOption<OffsetDateTime>, and that will default to 1 hour in the future (3600 seconds).