v0.3 Alpha
Check the README for updated instructions. The full diff for this release can be seen here.
Fga.Net
- Rebuilt Fga.Net on top of an NSwag client generated from the FGA service definition. This has resulted in breaking changes in API contracts across the board. This also means this client now has 100% API coverage.
FgaClientConfiguration
no longer acceptsStoreId
as a parameter, instead it must be provided on each individual API request.- Updated the authentication client to explicitly require the audience to be passed in, rather than computing it from the environment. For the previous behavior, use
FgaUtilities.GetAudienceUrl("us1")
.
Fga.Net.AspNetCore
There's been a general refactoring to support an arbitrary number of FGA stores via multiple authorization policies.
AddFgaRequirement
now requires a Store ID to be passed. The Store ID used for a tuple check is now directly linked to the policy.- Renamed
ComputedAuthorizationAttribute
toTupleCheckAttribute
- Renamed
StringComputedAuthorizationAttribute
toStringTupleCheckAttribute
- The authorization middleware now consumes the request's cancellation token and will fail fast any tuple check currently in flight.
Misc
- Various internal entities have been renamed and docs updated
- Added a worker service sample