We have managed to configure our Auth0 custom identity provider in our solution. Migrating from forms authentication however will take a bit more effort than just a bunch of config.
In order to avoid a really long lived branch, would there be a possibility to switch federated security on/off using a feature switch service like Launch Darkly.
Example of config:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<!-- This configuration disables Owin and Federated Auth which prevents Sitecore Membership Provider
from allow website visitors to authenticate and maintain a authenticated session.
This only applies to Standalone used for local dev and ContentDelivery for public website.
The CMS will still use Sitecore Identity Server to Authenticate. -->
<sitecore role:require="Standalone or ContentDelivery">
<settings>
<setting name="Owin.Authentication.Enabled" value="false" />
<setting name="FederatedAuthentication.Enabled" value="false" />
</settings>
<sites>
<site name="shell" set:loginPage="/sitecore/login" />
<site name="admin" set:loginPage="/sitecore/admin/login.aspx" />
</sites>
</sitecore>
</configuration>
Where the flags like Owin.Authentication.Enabled
can be switched on to True at runtime by fetching this from another service.