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

Send Client Method and Bulk ID headers for relevant OpenFGAClient methods #142

Open
1 task done
ewanharris opened this issue Nov 8, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@ewanharris
Copy link
Member

Checklist

Describe the problem you'd like to have solved

In our other SDKs, we send the following headers from certain methods:

  • X-OpenFGA-Client-Method - This represents the method name in the SDK
    • This can have the following values, ReadLatestAuthorizationModel, Write, WriteTuples, DeleteTuples, BatchCheck, ListRelations
  • X-OpenFGA-Client-Bulk-Request-Id - This is a shared UUID for SDK methods that make multiple requests
    • This is sent on ListRelations, BatchCheck, and Write calls

This should be sent by the associated methods in the Go SDK also

Describe the ideal solution

The Go SDK is updated to support passing these headers from the required methods.

This may require changes to the OpenFGAAPI to support passing in the header values, and ideally should be done without any breaking changes to the OpenFGAAPI

Alternatives and current workarounds

No response

References

No response

Additional context

No response

@ewanharris ewanharris added the enhancement New feature or request label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant