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: "[email protected]",
    connectionName: "Username-Password-Authentication",
});
import * as auth0 from "@pulumi/auth0";

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

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		user, err := auth.NewUser(ctx, "my-demo-user", &auth0.UserArgs{
			Username:       pulumi.String("joebloggs"),
			Password:       pulumi.String("Password1234!"),
			Email:          pulumi.String("[email protected]"),
			ConnectionName: pulumi.String("Username-Password-Authentication"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}
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 = "[email protected]",
                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.