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

Question: ETag support #175

Open
yubing24 opened this issue May 8, 2024 · 0 comments
Open

Question: ETag support #175

yubing24 opened this issue May 8, 2024 · 0 comments

Comments

@yubing24
Copy link

yubing24 commented May 8, 2024

Do you consider supporting ETag and embed ETag value to the response header?

I know ETag calculation varies, so I would propose an interface function that accepts an entity (User or Group), and returns a string as ETag:

type IEtagCalculator interface {
    CalculateEtag(entity {}interface) string
}

This interface can be added to scim.ServerOption or scim.ServerArgs. This should allow supporting calculating ETag with one specific function

Client code will need to implement the ETag function. If not, the server should warn that ETag function is nil.

If you don't have plan to support ETag, would you be open to adding a SupportEtag field to ServiceProviderConfig so that the service configuration for ETag can be customized by client code?

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