Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.75 KB

README.md

File metadata and controls

67 lines (48 loc) · 1.75 KB

terraform-provider-auth0

A custom provider for terraform.

Installation

  1. Download the latest release for your platform
  2. rename the file to terraform-provider-auth0
  3. Copy the file to the same directory as terraform dirname $(which terraform) is installed

Usage

auth0_client

Example Usage

Provides an auth0 client

provider "auth0" {
    domain = "abc.eu.auth0.com"
    access_token = "management.access.token"
}

resource "auth0_client" "test-client" {
    name = "p-test-dev2"
    is_token_endpoint_ip_header_trusted = true
    is_first_party = false
    description = ""
    cross_origin_auth = false
    sso = true
    token_endpoint_auth_method = "client_secret_post"
    grant_types = [ "authorization_code", "implicit", "refresh_token", "client_credentials" ]
    app_type = "non_interactive"
    custom_login_page_on = true
}

The output will look like this:

resource.auth0_client.test-client.client_id = "generated_client_id"
resource.auth0_client.test-client.client_secret = "generated_client_secret"

Argument Reference

Arguments have the same names as provided in Auth0 Management API documentation (https://auth0.com/docs/api/management/v2#!/Clients). The provider itself requires 2 parameters:

  • domain - The provided domain for the Auth0 account
  • access_token - An access token with sufficient permissions to access the Auth0 Management API and perform CRUD operations on clients

Attributes Reference

  • client_id - The client ID of the new client
  • client_secret - The client secret of the new client

Develop

go get github.com/dnna/terraform-provider-auth0
cd $GOPATH/src/github.com/dnna/terraform-provider-auth0
go get ./...
$EDITOR .