Skip to content
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

Schema endpoint to include extensions #1

Open
martinpritchard opened this issue Jun 19, 2019 · 2 comments
Open

Schema endpoint to include extensions #1

martinpritchard opened this issue Jun 19, 2019 · 2 comments

Comments

@martinpritchard
Copy link

martinpritchard commented Jun 19, 2019

I'm trying to add the EnterpriseUserExtension class as an extension to the standard UserResource class, and for the extension attributes to appear alongside the standard attributes in results of the /Schemas endpoint.

I have a Spring @Controller defined with the requiredSchemaExtensions, as below:

@ScimResource(description = "Access User Resources", name = "User", schema = UserResource.class, requiredSchemaExtensions = EnterpriseUserExtension.class)

However, the extension attributes are not returned from the /Schemas endpoint.

Looking at the code for SchemasController, it seems that if a coreSchema is defined, that is returned without the schemaExtensions. I have attempted to provide only requiredSchemaExtensions (which looks like it should work), however the @ScimResource requires the schema.

@fnaeem78
Copy link

@martinpritchard did you ever figure this out ? I have tried to define a custom schema for some attributes, the api is not deserilalizing them although it is being sent by the scim client.

@martinpritchard
Copy link
Author

@fnaeem78 I don't think I worked it out, the /Schemas endpoint didn't (still doesn't?) include custom attributes. However, it sounds like you may have a different problem if its a deserialization issue on a different API?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants