How to use Password connector to generate token using password grant? #2297
Unanswered
surnaja239068
asked this question in
Q&A
Replies: 1 comment
-
Doubt you still need this due to the age of the question, but if someone ELSE comes upon it, the answer is to include the client credentials as basic auth credentials, so your curl should look something like this (using some other curl flags to clean this up):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On executing token URL using Curl I'm getting invalid credentails.
curl -i -k -X POST -d "client_id=ldap&client_secret=ZXhhbXBsZS1hcHAtc2VjcmV0&response_type=token&scope=openid&state=&grant_type=password&username=my-user&password=testing" http://127.0.0.1:5556/dex/token
HTTP/1.1 401 Unauthorized
Content-Length: 76
Content-Type: application/json
Date: Sun, 17 Oct 2021 08:21:15 GMT
{"error":"invalid_client","error_description":"Invalid client credentials."}
Here is my connector configuraiton.
To the example ldap config, added passwordConnector
Beta Was this translation helpful? Give feedback.
All reactions