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

cognitocurl prints out id token instead of access token #43

Open
gb-klein opened this issue Feb 8, 2022 · 0 comments
Open

cognitocurl prints out id token instead of access token #43

gb-klein opened this issue Feb 8, 2022 · 0 comments

Comments

@gb-klein
Copy link

gb-klein commented Feb 8, 2022

First of all: Thank you for putting the time and efforts into this nice and useful helper tool!

We tried out cognitocurl for testing token retrieval from our aws cognito userpool. In the documentation it says when specifying the --token parameter the access token will be printed out. However we noticed that the id token is printed instead:

cognitocurl --cognitoclient <clientid> --userpool <userpool> --token --username <my-email> --password <pw>
=>
--- decoded token fragment ---
  "event_id": "250be102-dff9-473b-92c3-70eacc35c515",
  "token_use": "id",
  "auth_time": 1644229920,
---

As we would also need the access token (and optimally also the refresh token) to be printed out it would be really useful to print that as well (maybe via a separate cmd line parameters - e.g. for easier parsing)

Thanks a lot!

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