question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a flag to sfdx force:org:list --all --json to show the accessToken unencrypted for every connected environment

See original GitHub issue

Is your feature request related to a problem? Please describe.

When I run sfdx force:org:display --json the accessToken is unecrypted. I can just get it and use on my requests with Postman. But when I run sfdx force:org:list --all --json the accessTokens for every connected org are encrypted.

What are you trying to do I need to get all the access tokens for all my connected orgs with one command. Currently, I have to keep running sfdx force:org:display for every environment just to get the access token.

Describe the solution you’d like Add a new flag to this command sfdx force:org:list --all -t --json so it will display the access token unencrypted. Or just don’t encrypt the access token.

Describe alternatives you’ve considered Maybe there is a way for me to unencrypt it. I saw a .key inside .sfdx. Can I use that? if yes, how would the process be?

Additional context N/A

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mshanemccommented, Mar 22, 2021

Yes, in latest as of 4 days ago (updates go through a latest-rc, then promoted to latest the following week).

1reaction
mshanemccommented, Feb 5, 2021

@AllanOricil we’ve fixed this in the new plugin-org, which fixes a number of other bugs and performance issues.

If you’d like to try it out early (before it gets bundled into the CLI), you can install it manually: https://github.com/salesforcecli/plugin-org#install

Read more comments on GitHub >

github_iconTop Results From Across the Web

Salesforce CLI Release Notes (sfdx Commands) - GitHub
Use the --available flag to view all available older versions you can update to or -interactive to update interactively. If you use autocomplete,...
Read more >
SFDX force:user:list : meaning of output fields
This shows that the encrypted token seen in the <username.json> file or sfdx force:user:list 's response is required for generating a valid ...
Read more >
Authorize an Org Using the JWT Bearer Flow | Salesforce DX ...
In these environments, you must use the JSON web tokens (JWT) bearer flow to authorize an org. The JWT bearer authorization flow requires...
Read more >
Salesforce DX: Useful CLI Commands - Matheus Goncalves
sfdx force:org --help // lists all the commands in the topic force:org ... To create a scratch org, first create a JSON file...
Read more >
Get Started with JSON Web Tokens - Auth0
Which is the JSON Web Token structure? JWTs consist of three parts separated by dots ( . ), which are: Header; Payload; Signature....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found