Skip to content

Commit

Permalink
Merge pull request #10 from KayeeNL/feature/v10_3_0
Browse files Browse the repository at this point in the history
Feature/v10 3 0
  • Loading branch information
KayeeNL authored Dec 15, 2022
2 parents ae14f9b + ffaf17d commit 66ad5fa
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand All @@ -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
Binary file added Sitecore Packages/SI-Snitch for Sitecore-10.3.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Sitecore Packages/SI-Snitch for Sitecore.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<PackageName>SI-Snitch for Sitecore</PackageName>
<Author>Derek Correia &amp; Robbert Hock</Author>
<Version>10.2</Version>
<Version>10.3</Version>
<Revision />
<License />
<Comment />
Expand Down
2 changes: 1 addition & 1 deletion SitecoreServices.SISnitch/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SitecoreServices.SISnitch")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
5 changes: 4 additions & 1 deletion SitecoreServices.SISnitch/SISnitch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ public class Snitch : Transformation
{
public Snitch(BaseLog log)
{
Assert.ArgumentNotNull(log, "log");
Assert.ArgumentNotNull(log, nameof(log));
Log = log;
}

protected BaseLog Log { get; }

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);
}
}
Expand Down
8 changes: 4 additions & 4 deletions SitecoreServices.SISnitch/SitecoreServices.SISnitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="Sitecore.Kernel, Version=17.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Sitecore.Kernel.10.2.0\lib\net48\Sitecore.Kernel.dll</HintPath>
<Reference Include="Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Sitecore.Kernel.10.3.0\lib\net48\Sitecore.Kernel.dll</HintPath>
</Reference>
<Reference Include="Sitecore.Owin.Authentication, Version=7.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Sitecore.Owin.Authentication.10.2.0\lib\net48\Sitecore.Owin.Authentication.dll</HintPath>
<Reference Include="Sitecore.Owin.Authentication, Version=8.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Sitecore.Owin.Authentication.10.3.0\lib\net48\Sitecore.Owin.Authentication.dll</HintPath>
</Reference>
<Reference Include="sysglobl" />
<Reference Include="System" />
Expand Down
4 changes: 2 additions & 2 deletions SitecoreServices.SISnitch/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Sitecore.Kernel" version="10.2.0" targetFramework="net48" />
<package id="Sitecore.Owin.Authentication" version="10.2.0" targetFramework="net48" />
<package id="Sitecore.Kernel" version="10.3.0" targetFramework="net48" />
<package id="Sitecore.Owin.Authentication" version="10.3.0" targetFramework="net48" />
</packages>

0 comments on commit 66ad5fa

Please sign in to comment.