Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save georgechang/c02b0718fa7e104154f1deb5780ed9e7 to your computer and use it in GitHub Desktop.
Save georgechang/c02b0718fa7e104154f1deb5780ed9e7 to your computer and use it in GitHub Desktop.
Default Sitecore Authentication Enabler Config
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentManagement">
<settings>
<setting name="FederatedAuthentication.Enabled">
<patch:attribute name="value">true</patch:attribute>
</setting>
</settings>
<services>
<register serviceType="Sitecore.Abstractions.BaseAuthenticationManager, Sitecore.Kernel" implementationType="Sitecore.Owin.Authentication.Security.AuthenticationManager, Sitecore.Owin.Authentication" lifetime="Singleton" />
<register serviceType="Sitecore.Abstractions.BaseTicketManager, Sitecore.Kernel" implementationType="Sitecore.Owin.Authentication.Security.TicketManager, Sitecore.Owin.Authentication" lifetime="Singleton" />
<register serviceType="Sitecore.Abstractions.BasePreviewManager, Sitecore.Kernel" implementationType="Sitecore.Owin.Authentication.Publishing.PreviewManager, Sitecore.Owin.Authentication" lifetime="Singleton" />
</services>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment