Captain-P-Goldfish / scim-for-keycloak

a third party module that extends keycloak by SCIM functionality
BSD 3-Clause "New" or "Revised" License
186 stars 48 forks source link

Add groups to User #25

Closed JessThrysoee closed 2 years ago

JessThrysoee commented 3 years ago

This is missing ref and type. The type attribute should probably be "direct", and I would appreciate advise on how to correctly add ref

Captain-P-Goldfish commented 3 years ago

The methods within a ResourceHandler will receive a Context-object that represents the current request-context. It provides also methods to get $ref-urls

context.getResourceReferenceUrl(id);
context.getCrossResourceReferenceUrl(ResourceTypeNames.USER, id);
Captain-P-Goldfish commented 3 years ago

It is also possible to simply set the type-attribute to "Group" and the $ref-Attribute will be automatically set by the schema-validation

Captain-P-Goldfish commented 3 years ago

please add a unit test to prevent future regressions.