Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot get token when using password grant_type due to "Requested connector does not exist." #3199

Open
3 tasks done
zeddit opened this issue Nov 20, 2023 · 0 comments
Open
3 tasks done

Comments

@zeddit
Copy link

zeddit commented Nov 20, 2023

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

2.37.0

Storage Type

SQLite

Installation Type

Official Helm chart

Expected Behavior

when request using the following url, a token will be returned.

curl -i -X POST -d 'grant_type=password'  -d 'client_id=example-app' -d 'client_secret=ZXhhbXBsZS1hcHAtc2VjcmV0'  -d 'scope=openid' -d 'connector_id=ldap' http://127.0.0.1:5556/dex/token

Actual Behavior

curl -i -X POST http://127.0.0.1:5556/dex/token
{"error":"unsupported_grant_type"}%

curl -i -X POST -d 'grant_type=password'  http://127.0.0.1:5556/dex/token
{"error":"invalid_client","error_description":"Invalid client credentials."}%

curl -i -X POST -d 'grant_type=password'  -d 'client_id=example-app' http://127.0.0.1:5556/dex/token
{"error":"invalid_client","error_description":"Invalid client credentials."}%

curl -i -X POST -d 'grant_type=password'  -d 'client_id=example-app' -d 'client_secret=ZXhhbXBsZS1hcHAtc2VjcmV0'  http://127.0.0.1:5556/dex/token
{"error":"invalid_request","error_description":"Missing required scope(s) [\"openid\"]."}%

curl -i -X POST -d 'grant_type=password'  -d 'client_id=example-app' -d 'client_secret=ZXhhbXBsZS1hcHAtc2VjcmV0'  -d 'scope=openid' http://127.0.0.1:5556/dex/token
{"error":"invalid_request","error_description":"Requested connector does not exist."}%

curl -i -X POST -d 'grant_type=password'  -d 'client_id=example-app' -d 'client_secret=ZXhhbXBsZS1hcHAtc2VjcmV0'  -d 'scope=openid' -d 'connector_id=ldap' http://127.0.0.1:5556/dex/token
{"error":"invalid_request","error_description":"Requested connector does not exist."}%

Steps To Reproduce

No response

Additional Information

No response

Configuration

I used the official ldap docker-compose file and config-ldap.yaml

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant