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

UI - token expiration calculation #5435

Merged
merged 5 commits into from
Oct 2, 2018
Merged

UI - token expiration calculation #5435

merged 5 commits into from
Oct 2, 2018

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Oct 1, 2018

The UI was calculating the expiration of the vault token incorrectly - this changes it to use either the lease_duration or the ttl when calculating the expiration.

Fixes #5390

Also fixes a visual glitch that was introduced in the 3.4 upgrade where you'd see both the logged in and logged out nav briefly when authenticating.

@meirish meirish added this to the 0.11.2 milestone Oct 1, 2018
@meirish meirish requested review from a team October 1, 2018 18:58
};
this.set('expirationCalcTS', Date.now());
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't set this anymore now? Do we just calculate the expiration on the fly every time now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

aha!

madalynrose
madalynrose previously approved these changes Oct 1, 2018
@meirish meirish merged commit 83d4cef into master Oct 2, 2018
@meirish meirish deleted the ui-token-expiration branch October 2, 2018 13:53
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.

Periodic AppRole tokens can be considered expired by the UI while still valid
2 participants