Skip to content

cognitocurl prints out id token instead of access token #43

@gb-klein

Description

@gb-klein

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions