-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#902) * Fix: Issue #901 Add auth0 environment variables for integrations test Added explicit calls to the run script with the environment variable Added the `GOBIN` to the path for sake of the script Added clear instructions to CONTRIBUTING.md * Fix: Issue 901 - Unified Environment Variables * Ensure the `gobin` is before path Ensures that the new binaries will be used if a developer has releases installed previously. * Remove unused env variable * Revert environment name changes * Update CONTRIBUTING.md Co-authored-by: Will Vedder <[email protected]> * Conditionally include environment variables in Makefile --------- Co-authored-by: Will Vedder <[email protected]>
- Loading branch information
1 parent
8485181
commit f7d4c0c
Showing
7 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ tags | |
.vscode | ||
.DS_Store | ||
.idea | ||
.env | ||
|
||
# Vendor | ||
vendor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,24 @@ | |
2. Clone this repo: `git clone [email protected]:auth0/auth0-cli` | ||
3. `make test` - ensure everything works correctly. Should see things pass. | ||
|
||
### Adjusting your Development Environment (Optional) | ||
|
||
To pass the integration tests, you must have the `AUTH0_DOMAIN`, `AUTH0_CLIENT_ID` and `AUTH0_CLIENT_SECRET` environment variable set. To get these values, you can: | ||
|
||
1. Install [jq](https://jqlang.github.io/jq/) | ||
2. [Setup a Machine-to-Machine application](https://auth0.com/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps) | ||
3. Use the resulting **Client Secret** values | ||
|
||
#### Setting up your Environment Variables | ||
|
||
You can set these variables in a `.env` file at the root of the project (replace the values with your own): | ||
|
||
```shell | ||
export AUTH0_DOMAIN="travel0.us.auth0.com" | ||
export AUTH0_CLIENT_ID="tUIvPH7g2ykVm4lGriYEQ6BKV3je24Ka" | ||
export AUTH0_CLIENT_SECRET="XXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
``` | ||
|
||
## Build and run on native platform | ||
|
||
From the top-level directory: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters