forked from auth0/auth0-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Issue auth0#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
- Loading branch information
Michael Christenson II
committed
Nov 7, 2023
1 parent
52be860
commit 94fc071
Showing
2 changed files
with
24 additions
and
2 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
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_CLI_CLIENT_DOMAIN`, `AUTH0_CLI_CLIENT_ID` and `AUTH0_CLI_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 | ||
|
||
#### Using the Bash or Zsh shell | ||
|
||
You can set these variables in your `~/.bashrc` or `~/.zshrc` (replace the values with your own): | ||
|
||
```shell | ||
export AUTH0_CLI_CLIENT_DOMAIN="yourappdomain" | ||
export AUTH0_CLI_CLIENT_ID="yourclientid" | ||
export AUTH0_CLI_CLIENT_SECRET="yourcedentialsecret" | ||
``` | ||
|
||
## 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