Skip to content

OpenFGA hosting integration #1043

@maxs-rose

Description

@maxs-rose

.NET Aspire issue link

No response

Overview

OpenFGA is a fine grained authorization solution that allows developers to build granular access control using a custom dsl and self host the FGA server.

https://openfga.dev/

Usage example

var openFga = builder.AddOpenFga("openfga");

var store = openFga.AddStore("my-store")
    .WithModelDefinition("models", Path.Join(builder.AppHostDirectory, "Models"), "fga.mod");

builder.AddProject<MyProject>("project")
    .WithEnvironment("OpenFga__Connection", store.HttpEndpoint)
    .WithEnvironment("OpenFga__Store", store)

Additional context

I have built an OpenFGA integration that is published to nuget hosted here https://github.com/maxs-rose/Aspire-OpenFGA allowing for the integration of all the current storage's that it supports (postgres, sqlite, and mysql) with a couple extra bits to allow stores to be created, populated, and otel support.

Help us help you

Yes, but only if others can assist

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions