Skip to content

v0.9 Alpha

Compare
Choose a tag to compare
@Hawxy Hawxy released this 14 Apr 05:11
· 9 commits to main since this release
6e70483

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.