We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce7ab4 commit 92347d0Copy full SHA for 92347d0
src/tools/auth0/handlers/scimHandler.ts
@@ -199,7 +199,12 @@ export default class ScimHandler {
199
if (scimBodyParams) {
200
await this.updateScimConfiguration(requestParams, scimBodyParams);
201
} else {
202
- await this.deleteScimConfiguration(requestParams);
+ if (this.config('AUTH0_ALLOW_DELETE')) {
203
+ log.warn(`Deleting scim_configuration on connection ${ requestParams.id }.`);
204
+ await this.deleteScimConfiguration(requestParams);
205
+ } else {
206
+ log.debug('Skipping DELETE scim_configuration. Enable deletes by setting AUTH0_ALLOW_DELETE to true in your config.');
207
+ }
208
}
209
} else if (scimBodyParams) {
210
await this.createScimConfiguration(requestParams, scimBodyParams);
0 commit comments