Events provide a higher level of information beyond that of log output. The information raised from events provides structured information about success and failures within IdentityServer, including IDs, categories, and action details.
IdentityServer has a number of predefined events. As of Rsk.Saml v5.1.0, our SAML Identity Provider (IdP) component supports the in-built IdentityServer events.
Supported Event Types
The RSK SAML IdP currently supports the following IdentityServer events:
TokenIssuedSuccessEvent
&TokenIssuedFailureEvent
- Gets raised for successful/failed attempts to request SAML assertionsUnhandledExceptionEvent
- Gets raised for unhandled exceptions
Enabling Events
As we use the IdentityServer's built-in event system, SAML events will be emitted as long as events have been enabled within IdentityServer.
services.AddIdentityServer(options =>
{
options.Events.RaiseSuccessEvents = true;
options.Events.RaiseFailureEvents = true;
options.Events.RaiseErrorEvents = true;
});
AdminUI Auditing
Events that happen inside IdentityServer can be recorded into the same audit database as AdminUI, providing a single view of all Identity-related events, including OIDC and SAML events.
The AdminUI's Auditing feature allows you to view all the events in a user-friendly format and provides enhanced querying methods.
To learn how to integrate IdentityServer auditing into AdminUI, check out our walkthrough article.