Turn on authentication logging

IMPORTANT: You must turn on logging, only if you need to investigate a problem. This feature generates substantial amounts of data and you should turn it off, when you do not use it.

Turn on authentication logging

To this, perform the following:

  1. Navigate to Administration » Settings » Advanced » Authentication » SecurityTokenService » IdentityServer.
  2. In the left pane, click Authentication.
  3. Select Enable logging checkbox.
  4. Save your changes.

In case you are unable to access your website backend (for example due to authentication problems), you can manually enable authentication logging for troubleshootign purposes. To do that, you'll need to edit your Sitefinity CMS configuration files, so please proceed with the followign steps with caution:

  1. Edit the ~/App_Data/Sitefinity/Configuration/AuthenticationConfig.config file
  2. Set enableLogging="True" in the identityServerSettings tag:

 

The log information is available in the Authentication.log file, located in your project’s ~\App_Data\Sitefinity\Logs folder.

Change the default logger

To change the default logger, perform the following:

  1. Override the current SitefinityStsLogProvider or implement custom IdentityServer3.Core.Logging.ILogProvider
  2. Register the provider in the ObjectFactory, in the following way:
    ObjectFactory.Container.RegisterInstance<IdentityServer3.Core.Logging.ILogProvider>(new MyLogger());

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?