Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Mar 18, 2020
1 parent 6ca4684 commit b50f6c9
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions app/enterprise/1.3-x/deployment/access-license.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,39 @@ Click any file you would like to download.

For programmatic access you'll need 3 pieces of information:

- username (was provided to by email by your CSE)
- username (was provided by email by your CSE)
- repository name (the Bintray repository, visible in the GUI, usually named after your company name)
- the Bintray API key for the account (see below)

To get the API key follow these steps:

- [Log into Bintray](https://bintray.com/login?forwardedFrom=%2Fkong%2F)
- Open the Profile settings (click the username at the top-right and select "Edit Profile")
- On the left select "API Key", and provide your password again
1. [Log into Bintray](https://bintray.com/login?forwardedFrom=%2Fkong%2F)
2. Open the Profile settings (click the username at the top-right and select "Edit Profile")
3. On the left select "API Key", and provide your password again

To Access the license:

To access the license try this:
```bash
BINTRAY_USERNAME="your_user_name@kong" && \
BINTRAY_USERNAME="your_user_name" && \
BINTRAY_REPO="your_repo_name" && \
BINTRAY_APIKEY="your_api_key" && \
curl -L -u"$BINTRAY_USERNAME:$BINTRAY_APIKEY" "https://kong.bintray.com/$BINTRAY_REPO/license.json"
```
If successful it will display the downloaded license.
If successful, it will display the downloaded license.

To download the license file (as `license.json`) use this command:
```bash
curl -L -u"$BINTRAY_USERNAME:$BINTRAY_APIKEY" "https://kong.bintray.com/$BINTRAY_REPO/license.json" -o license.json
```
To use the liicense either as a file or as a variable replace the last command with either of these examples:

To export the license as an environment variable try:
```bash
export KONG_LICENSE_DATA=$(curl -L -u"$BINTRAY_USERNAME:$BINTRAY_APIKEY" "https://kong.bintray.com/$BINTRAY_REPO/license.json")
```
- To download the license file as `license.json`):

```bash
curl -L -u"$BINTRAY_USERNAME:$BINTRAY_APIKEY" "https://kong.bintray.com/$BINTRAY_REPO/license.json" -o license.json
```

- To export the license as an environment variable:

```bash
export KONG_LICENSE_DATA=$(curl -L -u"$BINTRAY_USERNAME:$BINTRAY_APIKEY" "https://kong.bintray.com/$BINTRAY_REPO/license.json")
```



0 comments on commit b50f6c9

Please sign in to comment.