-
Notifications
You must be signed in to change notification settings - Fork 401
How to log from IdentityModelEventSource.Logger
Keegan Caruso edited this page Nov 11, 2020
·
1 revision
To log from the IdentityModelEventSource.Logger the log level should be set at the desired verbosity, an event listener needs to be created and the event listener needs have events enabled for it
IdentityModelEventSource.Logger.LogLevel = System.Diagnostics.Tracing.EventLevel.LogAlways;
var wilsonTextLogger = new TextWriterEventListener("identitymodel.log");
wilsonTextLogger.EnableEvents(IdentityModelEventSource.Logger, System.Diagnostics.Tracing.EventLevel.Informational);
Conceptual Documentation
- Using TokenValidationParameters.ValidateIssuerSigningKey
- Scenarios
- Validating tokens
- Outbound policy claim type mapping
- How ASP.NET Core uses Microsoft.IdentityModel extensions for .NET
- Using a custom CryptoProvider
- SignedHttpRequest aka PoP (Proof-of-Possession)
- Creating and Validating JWEs (Json Web Encryptions)
- Caching in Microsoft.IdentityModel
- Resiliency on metadata refresh
- Use KeyVault extensions
- Signing key roll over