@salesforce/plugin-auth 2.4.2 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/authBaseCommand.d.ts +11 -0
  2. package/lib/authBaseCommand.js +64 -0
  3. package/lib/authBaseCommand.js.map +1 -0
  4. package/lib/commands/auth/accesstoken/store.d.ts +15 -3
  5. package/lib/commands/auth/accesstoken/store.js +39 -31
  6. package/lib/commands/auth/accesstoken/store.js.map +1 -1
  7. package/lib/commands/auth/device/login.d.ts +16 -4
  8. package/lib/commands/auth/device/login.js +48 -33
  9. package/lib/commands/auth/device/login.js.map +1 -1
  10. package/lib/commands/auth/jwt/grant.d.ts +18 -3
  11. package/lib/commands/auth/jwt/grant.js +54 -31
  12. package/lib/commands/auth/jwt/grant.js.map +1 -1
  13. package/lib/commands/auth/list.d.ts +14 -4
  14. package/lib/commands/auth/list.js +17 -14
  15. package/lib/commands/auth/list.js.map +1 -1
  16. package/lib/commands/auth/logout.d.ts +15 -6
  17. package/lib/commands/auth/logout.js +47 -26
  18. package/lib/commands/auth/logout.js.map +1 -1
  19. package/lib/commands/auth/sfdxurl/store.d.ts +11 -3
  20. package/lib/commands/auth/sfdxurl/store.js +37 -24
  21. package/lib/commands/auth/sfdxurl/store.js.map +1 -1
  22. package/lib/commands/auth/web/login.d.ts +18 -3
  23. package/lib/commands/auth/web/login.js +49 -31
  24. package/lib/commands/auth/web/login.js.map +1 -1
  25. package/messages/accesstoken.store.md +22 -0
  26. package/messages/device.login.md +28 -0
  27. package/messages/jwt.grant.md +29 -0
  28. package/messages/list.md +15 -0
  29. package/messages/logout.md +45 -0
  30. package/messages/messages.md +58 -0
  31. package/messages/sfdxurl.store.md +27 -0
  32. package/messages/web.login.md +31 -0
  33. package/oclif.manifest.json +371 -626
  34. package/package.json +16 -14
  35. package/lib/prompts.d.ts +0 -11
  36. package/lib/prompts.js +0 -65
  37. package/lib/prompts.js.map +0 -1
  38. package/messages/accesstoken.store.json +0 -9
  39. package/messages/device.login.json +0 -11
  40. package/messages/jwt.grant.json +0 -11
  41. package/messages/list.json +0 -4
  42. package/messages/logout.json +0 -9
  43. package/messages/messages.json +0 -37
  44. package/messages/sfdxurl.store.json +0 -8
  45. package/messages/web.login.json +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../src/commands/auth/web/login.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,6BAA6B;AAE7B,iDAAsE;AAEtE,2CAAmG;AACnG,yCAAsC;AACtC,mDAAqD;AACrD,8CAA2C;AAC3C,4CAAyC;AAEzC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,WAAW,CAAC,CAAC;AAC/E,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAEpF,MAAqB,KAAM,SAAQ,qBAAW;IA2CrC,KAAK,CAAC,GAAG;QACd,IAAI,mBAAmB,EAAE,EAAE;YACzB,MAAM,IAAI,cAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC,CAAC;SAC3E;QAED,IAAI,MAAM,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,QAAmB,CAAC;YAAE,OAAO,EAAE,CAAC;QAExF,MAAM,WAAW,GAAiB;YAChC,QAAQ,EAAE,MAAM,eAAM,CAAC,eAAe,CAAC,IAAA,cAAG,EAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAqB,CAAC;YACrG,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAkB;SACxC,CAAC;QAEF,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE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QACtB,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAChC,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC;QAC9C,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,CAAC,UAAU,CAAC;KACtB,CAAC;IACF,iBAAiB,EAAE,uBAAK,CAAC,OAAO,CAAC;QAC/B,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,gBAAgB,CAAC;QACpD,MAAM,EAAE,IAAI;QACZ,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC5B,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,cAAc,CAAC;QAClD,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;QACZ,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,CAAC,UAAU,CAAC;KACtB,CAAC;IACF,QAAQ,EAAR,0BAAQ;CACT,CAAC;AA0DJ,MAAM,mBAAmB,GAAG,GAAY,EAAE;IACxC,MAAM,GAAG,GAAG,IAAI,SAAG,EAAE,CAAC;IACtB,OAAO,GAAG,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC/C,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ # summary
2
+
3
+ authorize an org using an existing Salesforce access token
4
+
5
+ # description
6
+
7
+ authorize an org using an existing Salesforce access token
8
+ By default, the command runs interactively and asks you for the access token. If you previously authorized the org, the command prompts whether you want to overwrite the local file. Specify --no-prompt to not be prompted.
9
+ To use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the command with the --no-prompt parameter.
10
+
11
+ # examples
12
+
13
+ - $ <%= config.bin %> <%= command.id %> --instance-url https://mycompany.my.salesforce.com
14
+
15
+ - $ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx
16
+
17
+ - $ <%= config.bin %> <%= command.id %> --instance-url https://dev-hub.my.salesforce.com --no-prompt
18
+
19
+ # invalidAccessTokenFormat
20
+
21
+ The access token isn't in the correct format.
22
+ It should follow this pattern: %s.
@@ -0,0 +1,28 @@
1
+ # summary
2
+
3
+ authorize an org using a device code
4
+
5
+ # description
6
+
7
+ authorize an org using a device code
8
+ You must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and you’ll be prompted to allow the device to connect to the org.
9
+
10
+ # examples
11
+
12
+ - $ <%= config.bin %> <%= command.id %> -d -a TestOrg1
13
+
14
+ - $ <%= config.bin %> <%= command.id %> -i <OAuth client id>
15
+
16
+ - $ <%= config.bin %> <%= command.id %> -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
17
+
18
+ # actionRequired
19
+
20
+ Action Required!
21
+
22
+ # enterCode
23
+
24
+ Enter %s user code in the verification URL %s
25
+
26
+ # success
27
+
28
+ Login successful for %s. You can now close the browser.
@@ -0,0 +1,29 @@
1
+ # summary
2
+
3
+ authorize an org using the JWT flow
4
+
5
+ # description
6
+
7
+ authorize an org using the JWT flow
8
+ Use a certificate associated with your private key that has been uploaded to a personal connected app.
9
+ If you specify an --instanc-eurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To specify a sandbox, set --instance-url to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
10
+
11
+ # examples
12
+
13
+ - $ <%= config.bin %> <%= command.id %> -o me@my.org -f <path to jwt key file> -i <OAuth client id>
14
+
15
+ - $ <%= config.bin %> <%= command.id %> -o me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg
16
+
17
+ - $ <%= config.bin %> <%= command.id %> -o me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com
18
+
19
+ # username
20
+
21
+ authentication username
22
+
23
+ # key
24
+
25
+ path to a file containing the private key
26
+
27
+ # JwtGrantError
28
+
29
+ We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: %s
@@ -0,0 +1,15 @@
1
+ # summary
2
+
3
+ List auth connection information
4
+
5
+ # description
6
+
7
+ list auth connection information
8
+
9
+ # examples
10
+
11
+ - $ <%= config.bin %> <%= command.id %>
12
+
13
+ # noResultsFound
14
+
15
+ No results found
@@ -0,0 +1,45 @@
1
+ # summary
2
+
3
+ log out from authorized orgs
4
+
5
+ # description
6
+
7
+ log out from authorized orgs
8
+ By default, this command logs you out from your default scratch org.
9
+
10
+ # examples
11
+
12
+ - $ <%= config.bin %> <%= command.id %> -o me@my.org
13
+
14
+ - $ <%= config.bin %> <%= command.id %> -a
15
+
16
+ - $ <%= config.bin %> <%= command.id %> -p
17
+
18
+ # flags.target-org.summary
19
+
20
+ Username or alias of the target org.
21
+
22
+ # all
23
+
24
+ include all authenticated orgs
25
+
26
+ # allLong
27
+
28
+ Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.
29
+
30
+ # logoutCommandYesNo
31
+
32
+ Are you sure you want to log out from these org(s)?
33
+ %s
34
+
35
+ Important: You need a password to reauthorize scratch orgs. By default, scratch orgs have no password. If you still need your scratch orgs, run "%s org:generate:password" before logging out. If you don't need the scratch orgs anymore, run "%s org:delete:scratch" or "%s org:delete:sandbox"instead of logging out.
36
+
37
+ Log out?
38
+
39
+ # logoutOrgCommandSuccess
40
+
41
+ Successfully logged out of orgs: %s
42
+
43
+ # logoutOrgCommandNoOrgsFound
44
+
45
+ No orgs found to log out of.
@@ -0,0 +1,58 @@
1
+ # clientId
2
+
3
+ OAuth client ID (sometimes called the consumer key)
4
+
5
+ # setDefaultDevHub
6
+
7
+ set the authenticated org as the default dev hub org for scratch org creation
8
+
9
+ # setDefaultUsername
10
+
11
+ set the authenticated org as the default username that all commands run against
12
+
13
+ # setAlias
14
+
15
+ set an alias for the authenticated org
16
+
17
+ # instanceUrl
18
+
19
+ the login URL of the instance the org lives on
20
+
21
+ # authorizeCommandSuccess
22
+
23
+ Successfully authorized %s with org ID %s
24
+
25
+ # warnAuth
26
+
27
+ Logging in to a business or production org is not recommended on a demo or shared machine. Please run "%s auth:logout --target-org <your username> --no-prompt" when finished using this org, which is similar to logging out of the org in the browser.
28
+
29
+ Do you want to authorize this org for use with the Salesforce CLI?
30
+
31
+ # noPromptAuth
32
+
33
+ do not prompt for auth confirmation in demo mode
34
+
35
+ # disableMasking
36
+
37
+ disable masking of user input (for use with problematic terminals)
38
+
39
+ # clientSecretStdin
40
+
41
+ OAuth client secret of personal connected app?
42
+
43
+ # invalidInstanceUrl
44
+
45
+ Invalid instance URL. Specify a Salesforce instance URL using the format <domainname>.salesforce.com
46
+
47
+ # accessTokenStdin
48
+
49
+ Access token of user to use for authentication
50
+
51
+ # noPrompt
52
+
53
+ do not prompt for confirmation
54
+
55
+ # overwriteAccessTokenAuthUserFile
56
+
57
+ A file already exists for user "%s", which is associated with the access token you provided.
58
+ Are you sure you want to overwrite the existing file?
@@ -0,0 +1,27 @@
1
+ # summary
2
+
3
+ authorize an org using an SFDX auth URL stored within a file
4
+
5
+ # description
6
+
7
+ authorize an org using an SFDX auth URL stored within a file
8
+ The SFDX auth URL must have the format "%s". NOTE: The SFDX auth URL uses the "force" protocol, and not "http" or "https". Also, the "instanceUrl" inside the SFDX auth URL doesn't include the protocol ("https://").
9
+
10
+ You have three options when creating the auth file. The easiest option is to redirect the output of the `<%= config.bin %> org:display --verbose --json` command into a file. For example, using an org you have already authorized:
11
+
12
+ $ <%= config.bin %> org:display -o <OrgUsername> --verbose --json > authFile.json
13
+ $ <%= config.bin %> <%= command.id %> -f authFile.json
14
+
15
+ The resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow.
16
+
17
+ You can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.
18
+
19
+ # file
20
+
21
+ path to a file containing the sfdx url
22
+
23
+ # examples
24
+
25
+ - $ <%= config.bin %> <%= command.id %> -f <path to sfdxAuthUrl file>
26
+
27
+ - $ <%= config.bin %> <%= command.id %> -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg
@@ -0,0 +1,31 @@
1
+ # summary
2
+
3
+ authorize an org using the web login flow
4
+
5
+ # description
6
+
7
+ authorize an org using the web login flow
8
+ If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log in to a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
9
+ To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If you don't specify --browser, the org opens in your default browser.
10
+
11
+ # examples
12
+
13
+ - $ <%= config.bin %> <%= command.id %> -a TestOrg1
14
+
15
+ - $ <%= config.bin %> <%= command.id %> -i <OAuth client id>
16
+
17
+ - $ <%= config.bin %> <%= command.id %> -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
18
+
19
+ - $ <%= config.bin %> <%= command.id %> -a TestOrg1 -b firefox
20
+
21
+ # browser
22
+
23
+ browser where the org opens
24
+
25
+ # deviceWarning
26
+
27
+ auth:web:login doesn't work when authorizing to a headless environment. Use auth:device:login instead.
28
+
29
+ # invalidClientId
30
+
31
+ Invalid client credentials. Verify the OAuth client secret and ID. %s