Users are not logged out of custom social connection with Office365

Problem statement

Our custom social login connection behaves strangely in case of federated logging out.

Solution

The Logout URL or the Get Logout Url script needs to be configured for the connection to support Federated Logout.