Logout users

Hi, I have configured Auth0 as Idp for sso with hubspot crm portal. Now i would like to find a way to logout user or to invalidate an session. Is there any api or steps to follow to achieve this? Thanks.

To help anyone in the future…

To log a user out of Auth0 and Hubspot you need to direct the user (via link - e.g. a button) to one of the two Auth0 logout methods (OIDC or Auth0) while supplying a redirectTo back to the Hubspot logout page. You must specify the hubspot logout page in your Allowed Logout URLs in the Auth0 application.

https://[YOUR-AUTH0-DOMAIN]/v2/logout?client_id=[THE-CLIENT-ID-FOR-THE-INTEGRATION]&returnTo=https%3A%2F%2F**[YOUR-HUBSPOT-DOMAIN]**%2F_hcms%2Fmem%2Flogout

To create a log in button for Hubspot (though just going to protected content will require login)…

https://[YOUR-HUBSPOT-DOMAIN]/_hcms/mem/saml?redirect_url=https%3A%2F%2F**[YOUR-HUBSPOT-DOMAIN-AND-PATH]**