Skip to content

Commit

Permalink
add readme, wercker and vendored deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkappa committed May 7, 2018
1 parent ec28143 commit 7d924bd
Show file tree
Hide file tree
Showing 1,534 changed files with 546,424 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.tfstate
*.tfstate.backup
terraform-provider-auth0
.wercker
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
go build

install: build
go install

test:
go test ./...

testacc:
TF_ACC=1 go test ./... -v
98 changes: 97 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,97 @@
# terraform-provider-auth0
Terraform Provider
==================

- Website: https://www.terraform.io
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)

<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">

Requirements
------------

- [Terraform](https://www.terraform.io/downloads.html) 0.11.x
- [Go](https://golang.org/doc/install) 1.10 (to build the provider plugin)

Building The Provider
---------------------

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

```sh
$ mkdir -p $GOPATH/src/github.com/yieldr; cd $GOPATH/src/github.com/yieldr
$ git clone [email protected]:yieldr/terraform-provider-auth0
```

Enter the provider directory and build the provider

```sh
$ cd $GOPATH/src/github.com/yieldr/terraform-provider-auth0
$ make build
```

Using the provider
----------------------

To use the provider define the `auth0` provider in your `*.tf` file.

```
provider "auth0" {
"domain" = "<doman>"
"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.

Then you can define Auth0 resources using terraform

```
resource "auth0_client" "my_app_client" {
name = "My Application (Managed by Terraform)"
description = "My Applications Long Description"
app_type = "non_interactive"
is_first_party = false
oidc_conformant = false
callbacks = [ "https://example.com/callback" ]
allowed_origins = [ "https://example.com" ]
web_origins = [ "https://example.com" ]
jwt_configuration = {
lifetime_in_seconds = 300
secret_encoded = true
alg = "RS256"
}
}
```

Currently this provider supports [Clients (aka Applications)](https://auth0.com/docs/api/management/v2#!/Clients/get_clients) and [Resource Servers (aka APIs)](https://auth0.com/docs/api/management/v2#!/Resource_Servers/get_resource_servers) but we intend to support all entities of the Auth0 Management API.

If you need resources that are not available yet, please help the project by contributing.

Developing the Provider
---------------------------

If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.10+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.

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

```sh
$ make install
...
$ $GOPATH/bin/terraform-provider-auth0
...
```

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

```sh
$ make test
```

In order to run the full suite of Acceptance tests, run `make testacc`.

*Note:* Acceptance tests create real resources, and often cost money to run.

```sh
$ make testacc
```
2 changes: 2 additions & 0 deletions vendor/github.com/agext/levenshtein/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions vendor/github.com/agext/levenshtein/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions vendor/github.com/agext/levenshtein/DCO

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7d924bd

Please sign in to comment.