Skip to content

Commit

Permalink
Merge pull request #2 from KayeeNL/develop
Browse files Browse the repository at this point in the history
Added Sitecore package feature - Merge Develop into Master
  • Loading branch information
KayeeNL committed Nov 5, 2020
2 parents 926102c + 3001bba commit 9ec9414
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 9 deletions.
46 changes: 37 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,48 @@
# SI Snitch

[Blog post](https://sitecore.derekc.net/sisnitch-small-tool-to-debug-claims-coming-out-of-sitecore-identity/)

SI Snitch is a debugging tool for reading claims passed to Sitecore from Sitecore Identity, after transformation of those claims from Sitecore Identity. It can be helpful in:

- Identifying claims that Sitecore is getting, and in what format
- Ensuring group transformations in Sitecore Identity are being processed properly
- Identifying claims that Sitecore is getting, and in what format.
- Ensuring group transformations in Sitecore Identity are being processed properly.

**_Since SI Snitch dumps all claims into the log file of the system, it's highly recommended that this only be used in development environments. Use at your own risk!!!_**

Since SI Snitch dumps all claims into the log file of the system, it's _highly recommended_ that this only be used in development environments. Use at your own risk!
Original idea & blogpost from Derek on SI Snitch: [Read the blog post here](https://sitecore.derekc.net/sisnitch-small-tool-to-debug-claims-coming-out-of-sitecore-identity/).

## Usage

- Build SI Snitch
- Deploy assembly to /bin
- Deploy configuration to App_Config/Environment
- View claims in log files.
There are two ways to use this project:

- **Build the solution yourself and deploy the necessary files needed for SI Snitch.**
- **Install a Sitecore package directly on your Sitecore instance.**

### _Build it yourself_:

- Build the SI Snitch solution
- Deploy the SitecoreServices.SISnitch assembly to /bin folder
- Deploy the SitecoreServices.SISnitch.config configuration to the App_Config/Environment folder
- Start up your Sitecore instance and login through Identity Server
- View claims in log files (look for **_'oO SI Snitch Oo'_**).

### _Install through a Sitecore package_:

_Right click 'Save link as...' since GitHub doesn't respect url encoding, but markdown needs it for formatting in this readme ;-)_

- [SI-Snitch for Sitecore-9.3](./Sitecore%20Packages/SI-Snitch%20for%20Sitecore-9.3.zip) ( Sitecore 9.3)

The above package can be installed through the normal Sitecore Installation Wizard.

## Output of SI Snitch

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://sc93.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

etc...Look for **_'oO SI Snitch Oo'_** ;-)

## Support

Expand Down
Binary file added Sitecore Packages/SI-Snitch for Sitecore-9.3.zip
Binary file not shown.
52 changes: 52 additions & 0 deletions Sitecore Packages/SI-Snitch for Sitecore.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<project>
<Metadata>
<metadata>
<PackageName>SI-Snitch for Sitecore</PackageName>
<Author>Derek Correia &amp; Robbert Hock</Author>
<Version>9.3</Version>
<Revision />
<License />
<Comment />
<Attributes />
<Readme />
<Publisher />
<PostStep />
<PackageID />
</metadata>
</Metadata>
<SaveProject>True</SaveProject>
<Sources>
<xfiles>
<Entries>
<x-item>/App_Config/Environment/SitecoreServices.SISnitch.config</x-item>
<x-item>/bin/SitecoreServices.SISnitch.dll</x-item>
</Entries>
<Converter>
<FileToEntryConverter>
<Root>/</Root>
<Transforms>
<InstallerConfigurationTransform>
<Options>
<BehaviourOptions>
<ItemMode>Undefined</ItemMode>
<ItemMergeMode>Undefined</ItemMergeMode>
</BehaviourOptions>
</Options>
</InstallerConfigurationTransform>
</Transforms>
</FileToEntryConverter>
</Converter>
<Include />
<Exclude />
<Name>SI Snitch files</Name>
</xfiles>
</Sources>
<Converter>
<TrivialConverter>
<Transforms />
</TrivialConverter>
</Converter>
<Include />
<Exclude />
<Name />
</project>

0 comments on commit 9ec9414

Please sign in to comment.