Skip to content

A small utility for inspecting claims on a Sitecore instance that are coming from a Sitecore Identity Server.

Notifications You must be signed in to change notification settings

KayeeNL/SI-Snitch

 
 

Repository files navigation

SI Snitch

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.

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.

Usage

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 ;-)

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

The code, samples and/or solutions provided in this repository are unsupported by Sitecore. Don't even think of opening a support incident related to issues with this code.

Warranty

The code, samples and/or solutions provided in this repository are for example purposes only and without warranty (expressed or implied). The code has not been extensively tested and is not guaranteed to be bug free.

Contributors

Originally developed by:

Derek Correia - Twitter: @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, Sitecore 10.3 & Sitecore 10.4

Robbert Hock - 15x Sitecore MVP (2010-2024) Twitter: @kayeeNL, GitHub: https://github.com/KayeeNL

About

A small utility for inspecting claims on a Sitecore instance that are coming from a Sitecore Identity Server.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%