solidusio / solidus_bolt

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

SSO logout button #135

Closed DanielePalombo closed 2 years ago

DanielePalombo commented 2 years ago

This PR adds the ability to log out the user from both Bolt and Solidus sessions with one click. In order to do it, Bolt provides a js code that uses a specific div:

<div class="bolt-account-sso" data-logged-in="true"></div>

to handle the click and sign out the user from the bolt session, and then redirect the user to the Solidus logout page.

Screenshot 2022-07-27 at 19 14 16