The Cloud Engineering Summit replay is available! See all your favorite talks, on demand. Watch Now

Auth0

The Auth0 provider for Pulumi can be used to provision any of the cloud resources available in Auth0. The Auth0 provider must be configured with credentials to deploy and update resources in Auth0.

See the full API documentation for complete details of the available Auth0 provider APIs.

Setup

The Auth0 provider supports several options for providing access to Auth0 credentials. See the Auth0 setup page for details.

Example

const auth0 = require("@pulumi/auth0")

const user = new auth0.User("my-demo-user", {
    username: "joebloggs",
    password: "Password1234!",
    email: "joebloggs@mycompany.com",
    connectionName: "Username-Password-Authentication",
});
import * as auth0 from "@pulumi/auth0";

const user = new auth0.User("my-demo-user", {
    username: "joebloggs",
    password: "Password1234!",
    email: "joebloggs@mycompany.com",
    connectionName: "Username-Password-Authentication",
});
import pulumi_auth0 as auth0

user = auth0.User("my-demo-user",
  username="joebloggs",
  password="Password1234!",
  email="joebloggs@mycompany.com",
  connection_name="Username-Password-Authentication",
)
import (
  "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
  auth0 "github.com/pulumi/pulumi-auth0/sdk/go/auth0"
)

user, _ := auth.NewUser(ctx, "my-demo-user", &auth0.UserArgs{
  Username:       pulumi.String("joebloggs"),
  Password:       pulumi.String("Password1234!"),
  Email:          pulumi.String("joebloggs@mycompany.com"),
  ConnectionName: pulumi.String("Username-Password-Authentication"),
})
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Auth0;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var user = new User("test", new UserArgs
            {
                Username = "joebloggs",
                Password = "Password1234!",
                Email = "joebloggs@mycompany.com",
                ConnectionName = "Username-Password-Authentication",
            });
        });
}

Libraries

The following packages are available in packager managers:

The Auth0 provider is open source and available in the pulumi/pulumi-auth0 repo.