I'm the founder of https://WorkOS.com ("Stripe for SSO") and I can definitely say it takes a lot of eng work to build and maintain. The complexity is fractal as you scale to more and more enterprise users with esoteric systems.
We built out all our OAuth2 integrations with other platforms (different from SSO but something relatable), so we have an idea of how much work it is to maintain these types of “integrations” and related services… Clearly enough to warrant entire solutions like WorkOS dedicated for this exact purpose.