Scim-patch, a library to patch SCIM resources.
A typescript npm module to patch your SCIM request
Do you know SCIM ?
(System for Cross-domain Identity Management)
This is a provisioning protocol to share identity between different companies, this is actually the standard for SaaS companies.
This is a protocol, so you have to read the RFC if you want to understand everything.
I was implemented it for my companies and I had to support SCIM Patch (https://tools.ietf.org/html/rfc7644#section-3.5.2), which is not a required things, but I had to do it to be compliant with Okta and Onelogin.
A classic SCIM workflow looks like this:
SCIM Patch
SCIM patch allow you to make some partial changes to your SCIM resource.
To do that you should use this weird looking request format :
At first I was, ok let’s find a library who can help me, but it seems that nothing exist on NPM.
I am new to the node/npm environnement, but because nothing exist, I created my own library (my first one for NPM).
How it works?
Everything is explain on the README.md of the repo https://github.com/thomaspoignant/scim-patch.
But to be quick, this library can do 2 things validate a SCIM Patch query and patch a SCIM resource from a SCIM Patch Query.
If you think this library should be improve on some points, I will be super happy if you can do a pull request for that.
Links
Github: https://github.com/thomaspoignant/scim-patch
NPM: https://www.npmjs.com/package/scim-patch