Application start is interrupted by StackOverflowException when using OWIN and the number of sites is over several hundred


Description

The application start might be interrupted by StackOverflowException when using OWIN authentication and the number of sites is over several hundred. These can be sites defined in the Sitecore configuration as well as SXA sites. The root cause of the issue is the faulty behavior of the processor that triggers the Single Sign-Out functionality, namely the LogoutEndpoint processor.

Solution

Consider one of the following options: