Supporting SCIM feature | Workaround on node-auth0@v3
🔧 Changes
In this PR, I'm adding a workaround to enable SCIM support on auth0-deploy-cli with the current node-auth0@v3 version using the Auth0 Management API. This lets us use SCIM features with the current SDK until we complete the migration to node-auth0@v4.
- New property
scim_configurationis added toconnections - Modifiable properties inside
scim_configuration:user_id_attribute,mapping
📚 References
🔬 Testing
- Create a
config.jsonfile and keep it in the root of your project. Example:
{
"AUTH0_DOMAIN": "<YOUR_DOMAIN>",
"AUTH0_CLIENT_ID": "<CLIENT_ID>",
"AUTH0_CLIENT_SECRET": "<CLIENT_SECRET>",
"AUTH0_INCLUDED_ONLY": ["themes"],
"AUTH0_ALLOW_DELETE": false
}
-
Make sure you have SCIM supported enterprise connections configured on your tenant. The currently the SCIM supported strategies are
samlp,oidc,oktaandwaad -
Use the following commands to import or export configs: Export YAML:
node lib/index.js export -c config.json -o ./local -f yamlImport YAML:node lib/index.js import -c config.json --input_file ./local/tenant.yamlRefer documentation -
Make changes to
scim_configurationinsideconnectionsand runimportordeploycommand. And observe the changes on your tenant. -
Navigate to
Authentication > Enterprise > [YOUR_SCIM_CONNECTION] > Provisioningand make changes toSCIMconfiguration. Run anyexportordumpcommand. Observe the changes on your local.
📝 Checklist
- [ ] All new/changed/fixed functionality is covered by tests (or N/A)
- [ ] I have added documentation for all new/changed functionality (or N/A)