Skip to content

Commit

Permalink
chore: remove unused SCIM setting - assumeControlOfExisting (#8101)
Browse files Browse the repository at this point in the history
This property is unused and should be removed.

This fixes a logged schema error:

```
Invalid response: {
    "schema": "#/components/schemas/scimSettingsSchema",
    "errors": [
        {
            "instancePath": "",
            "schemaPath": "#/required",
            "keyword": "required",
            "params": {
                "missingProperty": "assumeControlOfExisting"
            },
            "message": "must have required property 'assumeControlOfExisting'"
        }
    ]
}
```
  • Loading branch information
nunogois authored Sep 5, 2024
1 parent 2daa0cd commit 355b3eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const ScimSettings = () => {
const saveScimSettings = async (enabled: boolean) => {
try {
setEnabled(enabled);
await saveSettings({ enabled, assumeControlOfExisting: false });
await saveSettings({ enabled });
if (enabled && !settings.hasToken) {
const token = await generateNewToken();
setNewToken(token);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ const ENDPOINT = 'api/admin/scim-settings';
export type ScimSettings = {
enabled: boolean;
hasToken: boolean;
assumeControlOfExisting: boolean;
};

const DEFAULT_DATA: ScimSettings = {
enabled: false,
hasToken: false,
assumeControlOfExisting: false,
};

export const useScimSettings = () => {
Expand Down

0 comments on commit 355b3eb

Please sign in to comment.