Skip to content

Commit fb3e679

Browse files
nandan-bhatdeveloperkunal
authored andcommitted
Adding fixes for permission errors (403) (#925)
* Adding fixes for permission errors * Updating the warning message * Adding fixes for too_many_requests (429) error --------- Co-authored-by: KunalOfficial <[email protected]>
1 parent d394490 commit fb3e679

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/tools/auth0/handlers/connections.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ export default class ConnectionsHandler extends DefaultAPIHandler {
190190
config: this.config,
191191
});
192192

193+
// We add the expected changes to the scimHandler so it can track the progress of the SCIM changes.
194+
// This is necessary because import / deploy actions are concurrent and we need to know when all updates are complete.
195+
const { update, create, conflicts } = proposedChangesWithExcludedProperties;
196+
this.scimHandler.expectedChanges = update.length + create.length + conflicts.length;
197+
193198
return proposedChangesWithExcludedProperties;
194199
}
195200

src/tools/auth0/handlers/scimHandler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ interface ScimScopes {
2525
delete: boolean;
2626
}
2727

28+
interface ScimScopes { read: boolean; create: boolean; update: boolean; delete: boolean }
29+
2830
/**
2931
* The current version of this sdk use `node-auth0` v3. But `SCIM` features are not natively supported by v3.
3032
* This is a workaround to make this SDK support SCIM without `node-auth0` upgrade.

0 commit comments

Comments
 (0)