This document describes SAML SSO integration with Microsoft 365 acting as the service provider.
ComponentSpace SAML for ASP.NET Microsoft 365 Integration Guide