Skip to content

Commit

Permalink
AUTH-6559 support strictness setting in access application scim mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
khiller-cf committed Oct 25, 2024
1 parent b873d58 commit 18d4596
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/3510.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
snippets: add support for controlling schema strictness in Access SCIM application provisioning mappings
```
1 change: 1 addition & 0 deletions access_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ type AccessApplicationScimMapping struct {
Filter string `json:"filter,omitempty"`
TransformJsonata string `json:"transform_jsonata,omitempty"`
Operations *AccessApplicationScimMappingOperations `json:"operations,omitempty"`
Strictness string `json:"strictness,omitempty"`
}

type AccessApplicationScimMappingOperations struct {
Expand Down
6 changes: 5 additions & 1 deletion access_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,8 @@ func TestCreateAccessApplicationWithSCIMProvisioning(t *testing.T) {
"create": true,
"update": true,
"delete": true
}
},
"strictness": "passthrough"
}
]
}
Expand Down Expand Up @@ -1471,6 +1472,7 @@ func TestCreateAccessApplicationWithSCIMProvisioning(t *testing.T) {
Update: BoolPtr(true),
Delete: BoolPtr(true),
},
Strictness: "passthrough",
},
},
},
Expand Down Expand Up @@ -1502,6 +1504,7 @@ func TestCreateAccessApplicationWithSCIMProvisioning(t *testing.T) {
Update: BoolPtr(true),
Delete: BoolPtr(true),
},
Strictness: "strict",
},
},
},
Expand Down Expand Up @@ -1537,6 +1540,7 @@ func TestCreateAccessApplicationWithSCIMProvisioning(t *testing.T) {
Update: BoolPtr(true),
Delete: BoolPtr(true),
},
Strictness: "strict",
},
},
},
Expand Down

0 comments on commit 18d4596

Please sign in to comment.