Skip to content

v0.6 Alpha

Compare
Choose a tag to compare
@Hawxy Hawxy released this 01 Sep 13:50
· 15 commits to main since this release
4880b62

Breaking Changes

  • This project now hangs off OpenFga.Sdk instead the Auth0 FGA client, and thus is now compatible with both OpenFGA & Auth0 FGA
  • The DI Extensions have been renamed to reflect this change:
// old
builder.Services.AddAuth0Fga(x =>
{
    x.ClientId = builder.Configuration["Auth0Fga:ClientId"];
    x.ClientSecret = builder.Configuration["Auth0Fga:ClientSecret"];
    x.StoreId = builder.Configuration["Auth0Fga:StoreId"];
});

// new
builder.Services.AddOpenFga(x =>
{
    x.WithAuth0FgaDefaults(builder.Configuration["Auth0Fga:ClientId"], builder.Configuration["Auth0Fga:ClientSecret"]);

    x.StoreId = builder.Configuration["Auth0Fga:StoreId"];
});
  • The WithAuth0FgaDefaults extension has been added to allow easy setup of the OpenFGA client for Auth0 FGA.

See the README for OpenSDK usage.