Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4b9e8a6

Browse files
committedApr 6, 2024·
fix: Correct curl snippets for builtin connector example
Signed-off-by: Harry Reeder <harry@harryreeder.co.uk>
1 parent fabd880 commit 4b9e8a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎content/docs/connectors/local.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,22 @@ Depending on whether you use a public or a private client you need to either inc
8585
**Public Client**
8686
```shell
8787
curl -L -X POST 'http://localhost:8080/dex/token' \
88-
-H 'Authorization: Basic cHVibGljLWNsaWVudAo=' \ # base64 encoded: public-client
88+
-H 'Authorization: Basic cHVibGljLWNsaWVudDo=' \ # base64 encoded: public-client:
8989
-H 'Content-Type: application/x-www-form-urlencoded' \
9090
--data-urlencode 'grant_type=password' \
9191
--data-urlencode 'scope=openid profile' \
9292
--data-urlencode 'username=admin@example.com' \
93-
--data-urlencode 'password=admin'
93+
--data-urlencode 'password=password'
9494
```
9595

9696

9797
**Private Client**
9898
```shell
9999
curl -L -X POST 'http://localhost:8080/dex/token' \
100-
-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldAo=' \ # base64 encoded: private-client:app-secret
100+
-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldA==' \ # base64 encoded: private-client:app-secret
101101
-H 'Content-Type: application/x-www-form-urlencoded' \
102102
--data-urlencode 'grant_type=password' \
103103
--data-urlencode 'scope=openid' \
104104
--data-urlencode 'username=admin@example.com' \
105-
--data-urlencode 'password=admin'
105+
--data-urlencode 'password=password'
106106
```

0 commit comments

Comments
 (0)
Please sign in to comment.