Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Update renew session response and renew URL #261

Merged
merged 7 commits into from
Apr 20, 2021
Merged

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Apr 8, 2021

part of gravitational/teleport#4937

Description

  • Renew session endpoint now returns a new field sessionExpires. This is the absolute time the web session will expire for the most recently consumed access request. This is the value used in the switchback countdown
  • Refactored how bearer token is being set

- Added local storage reload broadcaster to be able to reload opened tabs after user assumes a role or switches back to their default roles. This will be important when user switches back from higher privilege to lower privilege especially when they are connected to a node.
- Added ability to force reload to prevent confirmation pages (terminal) from reloading tabs

@kimlisa kimlisa requested a review from alex-kovoy April 8, 2021 06:28
@kimlisa kimlisa changed the title Add broacaster to trigger reloads for opened tabs Update renew session response and renew URL Apr 9, 2021
@alex-kovoy
Copy link
Contributor

@kimlisa LGTM

@kimlisa kimlisa merged commit f8f082c into master Apr 20, 2021
@kimlisa kimlisa deleted the lisa/switchback branch April 20, 2021 02:16
kimlisa added a commit that referenced this pull request Apr 29, 2021
- Renew session endpoint is modified so that we no longer send
request ID in param but as a json object.
- This endpoint now returns a new field sessionExpires.
This is the absolute time the web session will expire for the most
recently consumed access request and is the value used in the
switchback countdown.
- Refactored how bearer token is being set (used type instead of class)
- Update e-ref
kimlisa added a commit that referenced this pull request Apr 29, 2021
- Renew session endpoint is modified so that we no longer send
request ID in param but as a json object.
- This endpoint now returns a new field sessionExpires.
This is the absolute time the web session will expire for the most
recently consumed access request and is the value used in the
switchback countdown.
- Refactored how bearer token is being set (used type instead of class)
- Update e-ref
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants