Skip to content

Commit

Permalink
fix: Correct curl snippets for builtin connector example
Browse files Browse the repository at this point in the history
  • Loading branch information
hreeder committed Apr 6, 2024
1 parent fabd880 commit a45d4fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/docs/connectors/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ Depending on whether you use a public or a private client you need to either inc
**Public Client**
```shell
curl -L -X POST 'http://localhost:8080/dex/token' \
-H 'Authorization: Basic cHVibGljLWNsaWVudAo=' \ # base64 encoded: public-client
-H 'Authorization: Basic cHVibGljLWNsaWVudDo=' \ # base64 encoded: public-client:
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=openid profile' \
--data-urlencode '[email protected]' \
--data-urlencode 'password=admin'
--data-urlencode 'password=password'
```


**Private Client**
```shell
curl -L -X POST 'http://localhost:8080/dex/token' \
-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldAo=' \ # base64 encoded: private-client:app-secret
-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldA==' \ # base64 encoded: private-client:app-secret
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=openid' \
--data-urlencode '[email protected]' \
--data-urlencode 'password=admin'
--data-urlencode 'password=password'
```

0 comments on commit a45d4fe

Please sign in to comment.