Auth0.Fga 0.6.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
Suggested Alternatives

OpenFga.Sdk

Additional Details

Ever since OpenFGA was open sourced, our development efforts shifted to focus OpenFga.Sdk (OpenFga.Sdk). With time, we have decided to deprecate this package and ask users of this package to use the OpenFga.Sdk directly.

The OpenFGA Client comes with additional benefits, like the `BatchCheck`, `ListRelations` and non-transactional `Write` methods.

Transitioning should be fairly straight-forward with only a few changes needed.

To configure the OpenFGA SDK to talk to the Auth0/Okta FGA `us1` production API, use the following settings:
- API URL: https://api.us1.fga.dev/
- Credential Method: ClientCredentials
- API Token Issuer: fga.us.auth0.com
- API Audience: https://api.us1.fga.dev/

Learn more here: https://docs.fga.dev/integration/setup-sdk-client
Read the OpenFGA .NET SDK docs here: https://github.com/openfga/dotnet-sdk

dotnet add package Auth0.Fga --version 0.6.0
NuGet\Install-Package Auth0.Fga -Version 0.6.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Auth0.Fga" Version="0.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Auth0.Fga --version 0.6.0
#r "nuget: Auth0.Fga, 0.6.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Auth0.Fga as a Cake Addin
#addin nuget:?package=Auth0.Fga&version=0.6.0

// Install Auth0.Fga as a Cake Tool
#tool nuget:?package=Auth0.Fga&version=0.6.0

.NET SDK for Auth0 Fine Grained Authorization (FGA)

Nuget Release License

This is an autogenerated SDK for Auth0 Fine Grained Authorization (FGA). It provides a wrapper around the Auth0 Fine Grained Authorization API.

This SDK is considered deprecated.

Table of Contents

About

Okta Fine Grained Authorization (FGA) is designed to make it easy for application builders to model their permission layer, and to add and integrate fine-grained authorization into their applications. Okta Fine Grained Authorization (FGA)’s design is optimized for reliability and low latency at a high scale.

DEPRECATION WARNING: This project is no longer maintained. We recommend using the OpenFGA .NET SDK with the following configuration instead of this SDK:

using OpenFga.Sdk.Client;
using OpenFga.Sdk.Client.Model;
using OpenFga.Sdk.Model;

namespace Example {
    public class Example {
        public static async Task Main() {
            try {
                var configuration = new ClientConfiguration() {
                    ApiUrl = "https://api.us1.fga.dev",
                    StoreId = Environment.GetEnvironmentVariable("FGA_STORE_ID"),
                    AuthorizationModelId = Environment.GetEnvironmentVariable("FGA_AUTHORIZATION_MODEL_ID"),
                    Credentials = new Credentials() {
                        Method = CredentialsMethod.ClientCredentials,
                        Config = new CredentialsConfig() {
                            ApiTokenIssuer = "fga.us.auth0.com",
                            ApiAudience = "https://api.us1.fga.dev/",
                            ClientId = Environment.GetEnvironmentVariable("FGA_CLIENT_ID"),
                            ClientSecret = Environment.GetEnvironmentVariable("FGA_CLIENT_SECRET"),
                        }
                    }
                };
                var fgaClient = new OpenFgaClient(configuration);
                var response = await fgaClient.ReadAuthorizationModels();
            } catch (ApiException e) {
                 Debug.Print("Error: "+ e);
            }
        }
    }
}

For US1 (Production US) environment, use the following values:

  • API URL: https://api.us1.fga.dev
  • Credential Method: ClientCredentials
  • API Token Issuer: fga.us.auth0.com
  • API Audience: https://api.us1.fga.dev/

You can get the rest of the necessary variables from the FGA Dashboard. See here.

Resources

Contributing

This repo is deprecated and no longer accepting contributions.

Author

Okta FGA

License

This project is licensed under the MIT license. See the LICENSE file for more info.

The code in this repo was auto generated by OpenAPI Generator from a template based on the csharp-netcore template, licensed under the Apache License 2.0.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.6.0 84 2/23/2024
0.5.1 285 5/1/2023
0.5.0 292 12/20/2022
0.4.0 763 10/13/2022
0.3.1 565 6/10/2022
0.3.0 419 6/7/2022
0.2.4 581 4/10/2022
0.2.3 418 4/9/2022
0.2.2 415 3/17/2022
0.2.1 428 3/11/2022
0.2.0 431 3/11/2022