Skip to content

Schema endpoint to include extensions #1

@martinpritchard

Description

@martinpritchard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions