New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating and retrieval operations return unexpected attributes #27

Closed
jgomer2001 opened this Issue Sep 12, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@jgomer2001
Collaborator

jgomer2001 commented Sep 12, 2017

When creating a user, the server side outputs JSON with certain attributes (beside core attrs) which are not part of SCIM schema:

The following list summarizes those extra "unknown" attributes:

Inside multi-valued attributes

  • emails: operation, reference
  • address: operation
  • phones: operation
  • ims: operation
  • groups: operation
  • roles: operation
  • entitlements: operation
  • x509Certificates: operation

Regarding to single-valued:

  • pairwiseIdentitifers (should be returned only if requested - not part of schema)
  • password (returns a dummy value but should not be part of response)
@jgomer2001

This comment has been minimized.

Collaborator

jgomer2001 commented Sep 27, 2017

When creating a user, the server side outputs JSON with certain attributes (beside core attrs) which are not part of SCIM schema

All supporting resouce types data objects are being annotated with newer Attribute annotation and now reflect what the SCIM core schema dicates when serialization takes place (see for instance classes at https://github.com/GluuFederation/oxTrust/tree/scim2_compliance/scim/src/main/java/org/gluu/oxtrust/model/scim2/user)

pairwiseIdentitifers (should be returned only if requested - not part of schema)

This member was properly annotated so it's not part of default attribute set anymore:
https://github.com/GluuFederation/oxTrust/blob/scim2_compliance/scim/src/main/java/org/gluu/oxtrust/model/scim2/user/UserResource.java#L141

password (returns a dummy value but should not be part of response)

This member was properly annotated so it's never returned: https://github.com/GluuFederation/oxTrust/blob/scim2_compliance/scim/src/main/java/org/gluu/oxtrust/model/scim2/user/UserResource.java#L83

@jgomer2001 jgomer2001 closed this Sep 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment