Lab: Add Authorization to Your API with Auth0 FGA and Auth0

Description

This hands-on lab walks you through adding authorization to an API using Auth0 FGA. You’ll add authorization to an API that we provide you with, and register the associated client web application with Auth0 as an identity provider.

    • Add an authorization store in the Auth0 FGA dashboard.
    • Define a model in the Auth0 FGA dashboard.
    • Define relation tuples in the Auth0 FGA dashboard.
    • Create assertions to test the model in Developer Mode.
    • Integrate your application with Auth0 FGA using the OpenFGA SDK and the Auth0 FGA API.

Duration

25 minutes

Before you start

  1. Create a GitHub account with Codespaces access. You can create a free GitHub account if you don't already have one.
  2. Create a new Auth0 account so that you have a fresh tenant for the labs.

How to complete this lab

  1. Access the GitHub repository for this lab.
  2. Select the Code button and select the Codespaces tab if not already selected.
  3. Select the + button to create a Codespace on this branch. It will take a minute or two to set up the Codespace.
  4. Follow the CODETOUR lab steps within the Codespace.

Need help?

Visit the Auth0 Training Labs FAQ or email educationondemand@okta.com.