Set ScratchOrg User Password on Create #2377
Replies: 5 comments
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
This issue has been linked to a new work item: W-10017294 |
Beta Was this translation helpful? Give feedback.
-
If you want to log into a scratch org via a password, you can use How would the |
Beta Was this translation helpful? Give feedback.
-
The password could be set via:
Here are some password options # create org 1
sfdx force:org:create --password MyPassword123
# create org 2
sfdx force:org:create --password 1234ZuluPassword Once the password is set its easy to login to the ui and change it if needed. This would level set the security for Production Orgs, Sandboxes, Dev Orgs and Scratch orgs. The only one that hasn't gotten a password by default are scratch orgs. The null password on scratch org may have been the genesis of persisting access tokens, because frontdoor.jsp and an access token are the only way to access the GUI of a scratch org. |
Beta Was this translation helpful? Give feedback.
-
we don't put secrets in flags, to keep them out of the terminal history. |
Beta Was this translation helpful? Give feedback.
-
Has there been any thought to setting the password for the default scratch org users? Is it possible that OAuth token persistence is required because the default scratch org user has no password, therefore requiring OAuth for even GUI access?
Maybe adding a
password
parameter to theorg:create
command?Maybe some options like this?
sfdx force:org:create --password MyPassword
Some flows might look like this:
system.setPassword
methodAll of these steps could be executed in on script without the need to persist tokens.
Beta Was this translation helpful? Give feedback.
All reactions