New Features
- Added support for
OpenFgaClient
, this type offers ergonomic improvements over OpenFgaApi
and should be preferred. See the official post for more information.
- The middleware will now perform a parallel check if multiple check attributes are present for a given endpoint.
- Added Minimal API extensions for the built-in attributes:
builder.MapGet("/", () => /****/)
// FgaHeaderObjectAttribute
.WithFgaHeaderCheck("x", "y", "z")
// FgaRouteObjectAttribute
.WithFgaRouteCheck("x", "y", "z")
// FgaQueryObjectAttribute
.WithFgaQueryCheck("x", "y", "z")
// FgaPropertyObjectAttribute
.WithFgaPropertyCheck("x", "y", "z");
- Improved logging if an exception occurs during a middleware check.
Breaking Changes
- Remove previously obsoleted
AddOpenFga
extension.