diff --git a/README.md b/README.md index ef2c5f2..1ed934b 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ _Right click 'Save link as...' since GitHub doesn't respect url encoding, but ma - [SI-Snitch for Sitecore-10.1.1](./Sitecore%20Packages/SI-Snitch%20for%20Sitecore-10.1.1.zip) ( Sitecore 10.1.1) - [SI-Snitch for Sitecore-10.1.2](./Sitecore%20Packages/SI-Snitch%20for%20Sitecore-10.1.2.zip) ( Sitecore 10.1.2) - [SI-Snitch for Sitecore-10.2](./Sitecore%20Packages/SI-Snitch%20for%20Sitecore-10.2.zip) ( Sitecore 10.2) +- [SI-Snitch for Sitecore-10.3](./Sitecore%20Packages/SI-Snitch%20for%20Sitecore-10.3.zip) ( Sitecore 10.3) The above package can be installed through the normal Sitecore Installation Wizard. @@ -44,7 +45,7 @@ The following would be an output of SI Snitch in the Sitecore log file: - 32856 09:01:15 INFO oO SI Snitch Oo -- Claim: nbf || Value: 1604563275 - 32856 09:01:15 INFO oO SI Snitch Oo -- Claim: exp || Value: 1604564775 -- 32856 09:01:15 INFO oO SI Snitch Oo -- Claim: iss || Value: https://sc10_2_0.identityserver.dev.local +- 32856 09:01:15 INFO oO SI Snitch Oo -- Claim: iss || Value: https://sc10_3.identityserver.dev.local - 32856 09:01:15 INFO oO SI Snitch Oo -- Claim: aud || Value: Sitecore - 32856 09:01:15 INFO oO SI Snitch Oo -- Claim: iat || Value: 1604563275 @@ -64,6 +65,6 @@ _Originally developed by:_ Derek Correia - Twitter: [@derekc](https://twitter.com/derekc), GitHub: https://github.com/derekcorreia -_Upgraded + tested to support Sitecore 9.3, Sitecore 10.0.0, Sitecore 10.0.1, Sitecore 10.1.0 , Sitecore 10.1.1, Sitecore 10.1.2, Sitecore 10.2_ +_Upgraded + tested to support Sitecore 9.3, Sitecore 10.0.0, Sitecore 10.0.1, Sitecore 10.1.0 , Sitecore 10.1.1, Sitecore 10.1.2, Sitecore 10.2 & Sitecore 10.3_ Robbert Hock - Twitter: [@kayeeNL](https://twitter.com/kayeenl), GitHub: https://github.com/KayeeNL diff --git a/Sitecore Packages/SI-Snitch for Sitecore-10.3.zip b/Sitecore Packages/SI-Snitch for Sitecore-10.3.zip new file mode 100644 index 0000000..eeeba66 Binary files /dev/null and b/Sitecore Packages/SI-Snitch for Sitecore-10.3.zip differ diff --git a/SitecoreServices.SISnitch/SISnitch.cs b/SitecoreServices.SISnitch/SISnitch.cs index 52d33d8..6bd0c39 100644 --- a/SitecoreServices.SISnitch/SISnitch.cs +++ b/SitecoreServices.SISnitch/SISnitch.cs @@ -9,7 +9,7 @@ public class Snitch : Transformation { public Snitch(BaseLog log) { - Assert.ArgumentNotNull(log, "log"); + Assert.ArgumentNotNull(log, nameof(log)); Log = log; } @@ -17,6 +17,9 @@ public Snitch(BaseLog log) public override void Transform(ClaimsIdentity identity, TransformationContext context) { + Assert.ArgumentNotNull(identity, nameof(identity)); + Assert.ArgumentNotNull(context, nameof(context)); + foreach (var c in identity.Claims) Log.Info($"oO SI Snitch Oo -- Claim: {c.Type} || Value: {c.Value}", this); } }