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

Expose SetRequired(bool) method of CoreAttributes in CoreUserSchema #176

Open
springroll12 opened this issue Sep 5, 2024 · 0 comments
Open

Comments

@springroll12
Copy link

The core value in this library is that it provides pre-built endpoints and schema attributes to use to build a SCIM API.

It would be nice to be able to pick and choose which attributes from CoreUserSchema are required for a particular implementation and re-use these Attribute definitions. However without being able to specify which fields are required for the backing identity provider, this is not feasible.

As far as I can tell there is no way to re-use say the "email" Attribute defined below if we need it to be required. It seems to be necessary to recreate the entire Attribute definition, making CoreUserSchema() somewhat pointless unless you're using the default schema.

https://github.com/elimity-com/scim/blob/master/schema/schemas.go#L301

Is it a mis-use of the Attribute definitions to deviate from the required set of attributes (userName) in the User schema specification, or should we be allowed to modify these?

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

1 participant