How to install the SDK
note
Auth0 Fine Grained Authorization (FGA) is the early-stage product we are building at Auth0 to solve fine-grained authorization at scale.
Sign up for the Developer Community Preview to try it out, and join our Discord community if you are interested in learning more about our plans.
Please note that at this point in time, it is not considered production-ready and does not come with any SLAs; availability and uptime are not guaranteed. Limitations of Auth0 FGA during the Developer Community Preview can be found here.
Please note that at this point in time, it is not considered production-ready and does not come with any SLAs; availability and uptime are not guaranteed. Limitations of Auth0 FGA during the Developer Community Preview can be found here.
To get started, install the Auth0 FGA SDK packages.
- Node.js
- Go
- .NET
You can find find the Node.js package on npm at: @auth0/fga.
Using npm:
npm install @auth0/fga
Using yarn:
yarn add @auth0/fga
You can find find the Go package on GitHub at: fga-go-sdk.
To install:
go get -u github.com/auth0-lab/fga-go-sdk
In your code, import the module and use it:
import "github.com/auth0-lab/fga-go-sdk"
func Main() {
configuration, err := auth0fga.NewConfiguration(auth0fga.UserConfiguration{})
}
You can then run
go mod tidy
to update go.mod
and go.sum
if you are using them.
The Auth0 FGA .NET SDK is available on NuGet.
You can install it using:
- The dotnet CLI
dotnet add package Auth0.Fga
- The Package Manager Console inside Visual Studio:
Install-Package Auth0.Fga
Search for and install Auth0.Fga
in each of their respective package manager UIs.