forked from apache/geode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-7851: Pulse refreshes expired access tokens (apache#4977)
If a user's access token expires, Pulse attempts to refresh it. If the refresh fails, Pulse logs the user out and redirects the browser to /pulse/clusterLogout. Changes in Repository: - When OAuth is configured, before returning the user's cluster, getCluster() checks whether the user's access token has expired. - If the access token has expired, the repository attempts to refresh it. If the refresh succeeds, the repository reconnects the user's cluster to JMX and returns it. - If the refresh fails, the repository disconnects the user's cluster from JMX, removes the cluster from the repository, and throws an authentication or authorization exception. Changes in PulseController: - If the service call throws an authentication or authorization exception, PulseController. getPulseUpdate() returns a 401 status. Changes in pulsescript/common.js: - If a Pulse ajax call returns a 401 status, ajaxPost() redirects the browser to /pulse/clusterLogout to log the user out and request re-authorization. Co-authored-by: Joris Melchior <[email protected]> Co-authored-by: Dale Emery <[email protected]> Co-authored-by: Jinmei Liao <[email protected]> Co-authored-by: Kirk Lund <[email protected]> Co-authored-by: Joris Melchior <[email protected]> Co-authored-by: Jinmei Liao <[email protected]>
- Loading branch information
1 parent
0a1701e
commit 2999414
Showing
5 changed files
with
251 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.