For some time now I've been developing a very light and flexible open source CMS(do not expect the Umbraco level of features as this is the first version) that includes an example of how could your mount your own SSO authentication server using ASP.NET Core Identity + OpenIdDict for OAuth 2.0 authentication flows.
It uses as a default the PKCE authentication flow but it is very flexible and can be extended or converted into what you like.
While it is set up to work flawlessly with the rest of Microsoft integrations such as Azure it can be connected/made into whatever you want.
This is also my first public project so I would appreciate any feedback you can give to me.
Thank you :)