Skip to content

Commit 128a6f6

Browse files
committed
Fix curl examples in builtin connector
Signed-off-by: Simon Bein <simontheleg@gmail.com>
1 parent 32fe9f2 commit 128a6f6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/docs/connectors/local.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,26 @@ oauth2:
8686
Depending on whether you use a public or a private client you need to either include the just `clientId` or the `clientId` and `clientPassword` in the authorization header.
8787

8888
**Public Client**
89+
8990
```shell
9091
curl -L -X POST 'http://localhost:8080/dex/token' \
91-
-H 'Authorization: Basic cHVibGljLWNsaWVudAo=' \ # base64 encoded: public-client
9292
-H 'Content-Type: application/x-www-form-urlencoded' \
9393
--data-urlencode 'grant_type=password' \
9494
--data-urlencode 'scope=openid profile' \
9595
--data-urlencode 'username=admin@example.com' \
96-
--data-urlencode 'password=admin'
96+
--data-urlencode 'password=password' \
97+
--data-urlencode 'client_id=public-client'
9798
```
9899

99-
100100
**Private Client**
101+
101102
```shell
102103
curl -L -X POST 'http://localhost:8080/dex/token' \
103-
-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldAo=' \ # base64 encoded: private-client:app-secret
104104
-H 'Content-Type: application/x-www-form-urlencoded' \
105105
--data-urlencode 'grant_type=password' \
106106
--data-urlencode 'scope=openid' \
107107
--data-urlencode 'username=admin@example.com' \
108-
--data-urlencode 'password=admin'
108+
--data-urlencode 'password=password' \
109+
--data-urlencode 'client_id=private-client' \
110+
--data-urlencode 'client_secret=app-secret'
109111
```

0 commit comments

Comments
 (0)