Skip to content

Commit f9d362e

Browse files
committed
manually clear id_token on adminLogin page and for ssoBackToSession actions
1 parent ac8801a commit f9d362e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/main/webapp/WEB-INF/pages/sso/adminLogin.jsp

+7-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686

8787
</form>
8888
</div>
89-
<%-- END: login form --%>
89+
<%-- END: login form --%>
90+
91+
<!-- Remove the inventory JWT token -->
92+
<script type="text/javascript">
93+
window.sessionStorage.removeItem("id_token");
94+
</script>
95+
9096

9197
</div>

src/main/webapp/WEB-INF/pages/sso/ssoHeader.jsp

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
}
2222
2323
$('#ssoBackToSessionBtn').click(function() {
24+
window.sessionStorage.removeItem("id_token");
2425
window.location.href = "/adminLogin/backToSsoUserWorkspace";
2526
});
2627
2728
/* don't show logout within RSpace session, it would just duplicate 'Account'->'Sign out' */
2829
$('#ssoLogoutBtn').toggle(ssoheader_rspaceUsername == '');
2930
$('#ssoLogoutBtn').click(function() {
30-
window.location.href = "/adminLogin/logoutFromSso";
31+
window.location.href = "/adminLogin/logoutFromSso";
3132
});
3233
}
3334

0 commit comments

Comments
 (0)