Google Workspace users logging out from IdP even when 'federated' parameter is not included

Problem statement

When a user logs in with the Google Workspace connection and then we call the logout endpoint, the user is also logged out of Google even though we are not passing federated, in the logout request. Is this normal functionality or what should we do to not log the user out of the IdP?

Cause

https://{yourDomain}/logout’ endpoint was used and not the v2/logout endpoint. The old logout endpoint appears to have a built-in function of logging out Google Workspace users from the IdP even without including the ‘federated’ parameter.

Solution

Switching to the ‘https://{yourDomain}/v2/logout’ endpoint should resolve the issue.