Skip to content

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

@ewanharris

Description

@ewanharris

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions