Skip to content

Commit

Permalink
#295 update curl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang Wei committed Sep 16, 2021
1 parent 6d52095 commit 398a30e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions content/en/tutorial/oauth-kafka/bootstrap-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ To retrieve bootstrap token, call the endpoint
Client id and secret in body form
```
curl -k --location --request POST 'https://localhost:6882/oauth2/token' \
--header 'Host: localhost' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Transfer-Encoding: chunked' \
--form 'grant_type=bootstrap_token' \
--form 'sid=com.networknt.petstore-1.0.0' \
--form 'client_id=f7d42348-c647-4efb-a52d-4c5787421e00' \
--form 'client_secret=f6h1FTI8Q3-7UScPZDzfXA'
-H 'Host: localhost' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Transfer-Encoding: chunked' \
-d 'grant_type=bootstrap_token' \
-d 'sid=com.networknt.petstore-1.0.0' \
-d 'client_id=f7d42348-c647-4efb-a52d-4c5787421e00' \
-d 'client_secret=f6h1FTI8Q3-7UScPZDzfXA'
```

OR
Expand All @@ -45,10 +45,10 @@ Client id and secret in header

```
curl -k --location --request POST 'https://localhost:6882/oauth2/token' \
--header 'Host: localhost' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Transfer-Encoding: chunked' \
--header 'Authorization: Basic ZjdkNDIzNDgtYzY0Ny00ZWZiLWE1MmQtNGM1Nzg3NDIxZTAwOmY2aDFGVEk4UTMtN1VTY1BaRHpmWEE=' \
--form 'grant_type="bootstrap_token"' \
--form 'sid="com.networknt.petstore-1.0.0"'
-H 'Host: localhost' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Transfer-Encoding: chunked' \
-H 'Authorization: Basic ZjdkNDIzNDgtYzY0Ny00ZWZiLWE1MmQtNGM1Nzg3NDIxZTAwOmY2aDFGVEk4UTMtN1VTY1BaRHpmWEE=' \
-d 'grant_type=bootstrap_token' \
-d 'sid=com.networknt.petstore-1.0.0'
```

0 comments on commit 398a30e

Please sign in to comment.