'OpenIddict MVC Web Forms clients

I am new to OpenIddict but familiar with securing MVC and WebApi apps using federated authentication and OAuth2 providers like Azure AD, ADFS, and Salesforce.com. I want to use OpenIddict to create an on-premise OAuth2/OpenID Connect identity provider to enable single sign on for multiple on-premise sites. I've created the IDP host site and am able to sign in and view the created claims on the ClaimsIdentity. I'm struggling to find examples of creating clients built using OWIN in MVC or ASP.Net Web Forms (both framework 4.8, NOT Core). All the clients in the OpenIddict github repo are console apps and I'm not sure how to translate that into the OWIN pipeline. I've tried the Visual Studio templates but the support for Facebook/Google/Twitter IDP's doesn't seem to extend beyond those providers. It feels like it should be fairly straightforward but I can't find much online for securing with a custom IDP. Any examples or pointers would be very welcome.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source