RedHatInsights / insights-frontend

Web frontend for Insights
https://access.redhat.com/insights
7 stars 7 forks source link

Destroy Portal cookies when sending the user back to /logout #407

Closed iphands closed 6 years ago

iphands commented 6 years ago

This is needed because of this linein Portal Chrome: if (portal.host === location.origin && document.cookie.indexOf('rh_sso_session') >= 0 && !(document.cookie.indexOf('rh_jwt') >= 0)) window.location = '/login?redirectTo=' + encodeURIComponent(window.location.href);

Basically if we send to /logout after destroying the JWT state, Portal sends us right back to the login page with a redirect back to /logout on login... its weird. :D