Skip to content

Commit 9ad82f8

Browse files
committed
docs(README.md): add tenant and domain
1 parent e05aa5a commit 9ad82f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ because they identify the client account and are pre-configured on the Authentic
1010
environment variables:
1111
```
1212
declare -x CODEBGP_AUTH_CLIENT_ID=`auth-client-id` \
13-
CODEBGP_AUTH_DOMAIN=`auth0-domain`
13+
CODEBGP_AUTH_DOMAIN=login.codebgp.com
1414
```
1515

16-
2. `--username` and `--password` are required for the initial authentication (#1). `--jwt_audience` is implicitly propagated to tokens on refresh and it receives a default value when omitted.
16+
2. `--username`, `--password` and `tenant-id` are required for the initial authentication (#1). `--jwt_audience` is implicitly propagated to tokens on refresh and it receives a default value when omitted.
1717

1818
3. `CODEBGP_ACCESS_TOKEN` `CODEBGP_REFRESH_TOKEN` are state variables, updated by authentication commands and used to keep the state of the currently used tokens. `CODEBGP_ENDPOINT` is extracted from the `CODEBGP_ACCESS_TOKEN` payload custom claim to dynamically set the API endpoint from the access token.
1919

@@ -24,7 +24,7 @@ The commands below depend on `jq` for JSON processing, but any similar tool can
2424

2525
1. Fetch the `CODEBGP_ACCESS_TOKEN` and `CODEBGP_REFRESH_TOKEN`:
2626
```
27-
temp=$(./get-token.sh --username=`username` --password=`password`) \
27+
temp=$(./get-token.sh --username=`username` --password=`password` --tenant=`tenant-id`) \
2828
&& CODEBGP_ACCESS_TOKEN=$(echo $temp | jq -r .access_token) \
2929
&& CODEBGP_REFRESH_TOKEN=$(echo $temp | jq -r .refresh_token)
3030
```

0 commit comments

Comments
 (0)