scim
scim copied to clipboard
Add Support for custom attributes
Issue
IDP like OKTA, Azure support custom attributes along with scim attributes. Today Resource type validations will drop all non-scim compliant attributes during validation
Solution
Adding a flag to allow non-SCIM compliant attributes, updating the validation logic to include these attributes
Support for custom attributes:
-
resource_type.go: AddedAllowNonScimKeysflag toResourceTypeto allow non-SCIM compliant attributes. Updated thevalidatemethod to include these attributes in the resource type. [1] [2]
Testing enhancements:
-
handlers_test.go: Added theAllowNonScimKeysflag to thenewTestServerfunction and created a new testTestServerResourceHandlerWithCustomAttributesto verify the handling of custom attributes. [1] [2] -
utils_test.go: Added a helper functionassertEqualMapsto compare maps in tests.