No description
  • Go 93.8%
  • HCL 3.1%
  • Shell 1.5%
  • Makefile 0.9%
  • HTML 0.7%
Find a file
2020-08-24 04:35:29 +00:00
.github remove indirect imports, update bug report template 2020-08-17 22:51:53 +02:00
auth0 Merge branch 'jmm/properly-expanded-saml-options' of https://github.com/198d/terraform-provider-auth0 into 198d-jmm/properly-expanded-saml-options 2020-08-23 10:17:06 +02:00
example refresh_token example 2020-07-16 23:24:57 +02:00
scripts update vendors 2020-02-27 16:35:19 +00:00
vendor auth0 v 4.4.1: go mod tidy go mod vendor 2020-07-19 11:51:38 +02:00
version include provider version information in user agent 2020-04-16 09:54:26 +02:00
website Merge pull request #263 from squarebracket/fix-docs 2020-08-23 08:40:02 +02:00
.gitignore Updated the broken twilio test case (tested with make testacc) 2019-09-18 17:07:37 +10:00
.go-version add .go-version to control release version 2020-04-16 10:35:17 +02:00
.travis.yml fix env vars 2020-04-15 09:17:41 +02:00
CHANGELOG.md Cleanup after v0.14.0 release 2020-08-24 04:35:29 +00:00
GNUmakefile allow client jwt scopes to be empty 2020-04-15 08:15:24 +02:00
go.mod remove indirect imports, update bug report template 2020-08-17 22:51:53 +02:00
go.sum auth0 v 4.4.1: go mod tidy go mod vendor 2020-07-19 11:51:38 +02:00
LICENSE Switch to the MPL 2.0 license (#71) 2019-01-18 14:38:42 +01:00
main.go fmt main.go 2020-02-11 15:40:07 +01:00
README.md share gitter room and update examples 2020-05-05 10:30:07 +02:00

Auth0 Terraform Provider

Build Status Maintainability Test Coverage Gitter

This provider has recently been accepted in the Terraform Provider Developer Program. This means you can install this provider with the same ease as other officially supported providers!

Issues & Pull Requests

Please submit issues or pull requests to alexkappa/terraform-provider-auth0. This helps maintainers organize work more efficiently.

Requirements

  • Terraform 0.11.x || 0.12.x
  • Go 1.10 (to build the provider plugin)

Using the provider

To install this provider, copy and paste this code into your Terraform configuration. Then, run terraform init.

provider "auth0" {
  version = "> 0.8"
}

To configure the provider with your personal client credentials, define the domain, client_id and client_secret.

provider "auth0" {
  version = "> 0.8"
  domain = "<domain>"
  client_id = "<client-id>"
  client_secret = "<client-secret>"
}

These variables can also be accessed via the AUTH0_DOMAIN, AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET environment variables respectively.

Examples of resources can be found in the examples directory.

Building The Provider

Clone repository to: $GOPATH/src/github.com/alexkappa/terraform-provider-auth0

$ mkdir -p $GOPATH/src/github.com/alexkappa; cd $GOPATH/src/github.com/alexkappa
$ git clone git@github.com:alexkappa/terraform-provider-auth0

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/alexkappa/terraform-provider-auth0
$ make build

Developing the Provider

If you wish to work on the provider, you'll need Go installed on your machine (version 1.10+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

On how to develop custom terraform providers, read the official guide.

To compile the provider, run make build. This will build the provider and install the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-auth0
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, the following environment variables must be set:

AUTH0_DOMAIN=your-tenant.auth0.com
AUTH0_CLIENT_ID=xyz
AUTH0_CLIENT_SECRET=xyz

Then, run make testacc.

Note: The acceptance tests make calls to a real Auth0 tenant, and create real resources. Certain tests, for example for custom domains (TestAccCustomDomain), also require a paid Auth0 subscription to be able to run successfully.

At the time of writing, the following configuration steps are also required for the test tenant:

  • The Username-Password-Authentication connection must have Requires Username option enabled for the user tests to successfully run.

Supporting the provider

This project is maintained by myself (@alexkappa) with contributions from great people across the community.

I am not affiliated with Auth0 and all work that goes into this provider is done during my spare time. Please be patient with issues and pull requests.

If you or your company relies on this plugin or the Go SDK and would like to ensure its continuing support please consider donating.