Skip to content

Logs and auditing

The module keeps four logs. To open them, go to System > Permissions > Visus Single Sign-On, and use the Logs group of the navigation.

Log Records Written by
Login Log Each SSO login, test and re-authentication The module
Provider Changes Each change to an identity provider Database triggers
Domain Changes Each change to a domain Database triggers
Service Provider Key Changes Each change to a service provider key Database triggers

The login log has one entry for each SSO login attempt, each test of a provider and each re-authentication.

Column Description
Date The time of the attempt.
Provider The identity provider.
Admin User The admin user, if the module found one.
NameID The NameID from the assertion.
Email The email address from the IdP.
Status Success or Failure.
Failure Reason The reason of a failure. Refer to Troubleshooting.
IP Address The remote IP address of the browser.
User Agent The user agent of the browser.

The log also marks each test of a provider and each re-authentication.

The SSO Login Log grid with one successful login and one failed login. The Failure Reason column shows ‘The response is not signed.’

Database triggers write the change logs. Thus the logs also record a change from outside Magento, for example a change with SQL.

Column Description
Date The time of the change.
Provider Code, Domain or Key ID The record at the time of the change. The log keeps this value after a delete.
Action Insert, Update or Delete.
Field The changed column.
Old Value The value before the change.
New Value The value after the change.
Admin User The admin user, for a change in the admin.
IP Address The remote IP address, for a change in the admin.
Database User The database account that made the change.

An insert or a delete records each column that has a value. An update records each column that changed. A change from outside the admin, such as from the CLI, from cron or from SQL, shows only the database user.

The service provider key change log does not keep the private key. It keeps a SHA-256 digest of the encrypted private key.

The SSO Provider Change Log grid. It shows an update of the settings field, with the old and new values, the admin user and the database user.

Cron jobs examine the triggers every 5 minutes. If a trigger is missing or changed, the job creates it again, and writes a critical entry in the system log. A trigger can be missing, for example, after you restore a database dump without triggers.

Cron jobs delete the old entries one time each day. Set the lifetime of each log in System configuration.

Log Default lifetime
Login log 365 days
Provider change log No limit
Domain change log No limit
Service provider key change log No limit

A change log lifetime must be 0 (no limit) or 90 days or more.