Using this, you can terminate the user's Single Sign-On (SSO) session from the Shopify store as well as your Identity Provider (IdP) when the user logs out from any of the connected platforms.
1. SAML Protocol
In case of SAML, while configuring the IdP in the Shopify SSO application, you need to add the SAML Logout URL of the Identity Provider (for example: Auth0) in the "Single Logout URL" field.
Add the following endpoint in the Shopify theme -> main-account.liquid template: