Skip to main content
Connect your AI agent to a user’s Hugging Face account to manage and upload models and datasets to the Hub, and interact with Spaces.

Connect Hugging Face to Auth0

1

Hugging Face setup

  1. Visit the Hugging Face Developer account page and sign up.
  2. Navigate to the connected apps section under settings.
  3. Create a new OAuth application in the Hugging Face Developer Console.
  4. Complete the application form.
  5. Configure scopes:
    • Add the necessary scopes for your application.
  6. Configure OAuth redirect URL:
    • Redirect URL: https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  7. Click Create Application.
  8. After creation you’ll be shown the client ID and client secret.
  9. Copy the Client ID and Client Secret.
To learn more about setting up Hugging Face, read the Developer guide for Hugging Face documentation.
2

Auth0 setup

Token Vault configuration example

To configure the Token Vault for your Hugging Face connection, you can use the following code snippet in your application:

Next steps