@salesforce/plugin-auth 3.7.0 → 3.7.2

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.
package/README.md CHANGED
@@ -108,7 +108,7 @@ EXAMPLES
108
108
  $ sf org list auth
109
109
  ```
110
110
 
111
- _See code: [src/commands/org/list/auth.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/list/auth.ts)_
111
+ _See code: [src/commands/org/list/auth.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/list/auth.ts)_
112
112
 
113
113
  ## `sf org login access-token`
114
114
 
@@ -162,7 +162,7 @@ FLAG DESCRIPTIONS
162
162
  To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
163
163
  ```
164
164
 
165
- _See code: [src/commands/org/login/access-token.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/login/access-token.ts)_
165
+ _See code: [src/commands/org/login/access-token.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/login/access-token.ts)_
166
166
 
167
167
  ## `sf org login device`
168
168
 
@@ -222,7 +222,7 @@ FLAG DESCRIPTIONS
222
222
  To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
223
223
  ```
224
224
 
225
- _See code: [src/commands/org/login/device.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/login/device.ts)_
225
+ _See code: [src/commands/org/login/device.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/login/device.ts)_
226
226
 
227
227
  ## `sf org login jwt`
228
228
 
@@ -313,7 +313,7 @@ FLAG DESCRIPTIONS
313
313
  To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
314
314
  ```
315
315
 
316
- _See code: [src/commands/org/login/jwt.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/login/jwt.ts)_
316
+ _See code: [src/commands/org/login/jwt.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/login/jwt.ts)_
317
317
 
318
318
  ## `sf org login sfdx-url`
319
319
 
@@ -383,7 +383,7 @@ EXAMPLES
383
383
  $ echo url | sf org login sfdx-url --sfdx-url-stdin
384
384
  ```
385
385
 
386
- _See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/login/sfdx-url.ts)_
386
+ _See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/login/sfdx-url.ts)_
387
387
 
388
388
  ## `sf org login web`
389
389
 
@@ -398,13 +398,18 @@ FLAGS
398
398
  -a, --alias=<value> Alias for the org.
399
399
  -b, --browser=<option> Browser in which to open the org.
400
400
  <options: chrome|edge|firefox>
401
- -c, --client-app=<value> Name of the connected app or external client app to link to the user.
401
+ -c, --client-app=<value> Name to give to the link between the connected app or external client and the
402
+ already-authenticated user. You can specify any string you want. Must be used with
403
+ --username.
402
404
  -d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
403
405
  -i, --client-id=<value> OAuth client ID (also called consumer key) of your custom connected app.
404
406
  -r, --instance-url=<value> URL of the instance that the org lives on.
405
407
  -s, --set-default Set the authenticated org as the default that all org-related commands run against.
406
- --scopes=<value> Authentication scopes to request.
407
- --username=<value> Username to link client app to.
408
+ --scopes=<value> Authentication (OAuth) scopes to request. Use the scope's short name; specify multiple
409
+ scopes using just one flag instance and separated by spaces: --scopes "sfap_api
410
+ chatbot_api".
411
+ --username=<value> Username of the already-authenticated user to link to the connected app or external client
412
+ app. Must be used with --client-app.
408
413
 
409
414
  GLOBAL FLAGS
410
415
  --flags-dir=<value> Import flag values from a directory.
@@ -430,6 +435,15 @@ DESCRIPTION
430
435
  digital certificate. Make note of the consumer key (also called cliend id) that’s generated for you. Then specify the
431
436
  consumer key with the --client-id flag.
432
437
 
438
+ You can also use this command to link one or more connected or external client apps in an org to an
439
+ already-authenticated user. Then Salesforce CLI commands that have API-specific requirements, such as new OAuth scopes
440
+ or JWT-based access tokens, can use these custom client apps rather than the default one. To create the link, you use
441
+ the --client-app flag to give the link a name and the --username flag to specify the already-authenticated user. Use
442
+ the --scopes flag to add OAuth scopes if required. After you create the link, you then use the --client-app value in
443
+ the other command that has the API-specific requirements. An example of a command that uses this feature is "agent
444
+ preview"; see the "Preview an Agent" section in the "Agentforce Developer Guide" for details and examples.
445
+ (https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html)
446
+
433
447
  ALIASES
434
448
  $ sf force auth web login
435
449
  $ sf auth web login
@@ -453,10 +467,11 @@ EXAMPLES
453
467
  $ sf org login web --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
454
468
  --browser chrome
455
469
 
456
- Use your own connected app by specifying its consumer key (also called client ID):
470
+ Use your own connected app by specifying its consumer key (also called client ID) and specify additional OAuth
471
+ scopes:
457
472
 
458
473
  $ sf org login web --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
459
- --browser chrome --client-id 04580y4051234051
474
+ --browser chrome --client-id 04580y4051234051 --scopes "sfap_api chatbot_api"
460
475
 
461
476
  FLAG DESCRIPTIONS
462
477
  -b, --browser=chrome|edge|firefox Browser in which to open the org.
@@ -473,7 +488,7 @@ FLAG DESCRIPTIONS
473
488
  To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
474
489
  ```
475
490
 
476
- _See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/login/web.ts)_
491
+ _See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/login/web.ts)_
477
492
 
478
493
  ## `sf org logout`
479
494
 
@@ -539,6 +554,6 @@ FLAG DESCRIPTIONS
539
554
  All orgs includes Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.
540
555
  ```
541
556
 
542
- _See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.0/src/commands/org/logout.ts)_
557
+ _See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.2/src/commands/org/logout.ts)_
543
558
 
544
559
  <!-- commandsstop -->
@@ -12,6 +12,8 @@ We recommend that you set an alias when you log into an org. Aliases make it eas
12
12
 
13
13
  By default, this command uses the global out-of-the-box connected app in your org. If you need more security or control, such as setting the refresh token timeout or specifying IP ranges, create your own connected app using a digital certificate. Make note of the consumer key (also called cliend id) that’s generated for you. Then specify the consumer key with the --client-id flag.
14
14
 
15
+ You can also use this command to link one or more connected or external client apps in an org to an already-authenticated user. Then Salesforce CLI commands that have API-specific requirements, such as new OAuth scopes or JWT-based access tokens, can use these custom client apps rather than the default one. To create the link, you use the --client-app flag to give the link a name and the --username flag to specify the already-authenticated user. Use the --scopes flag to add OAuth scopes if required. After you create the link, you then use the --client-app value in the other command that has the API-specific requirements. An example of a command that uses this feature is "agent preview"; see the "Preview an Agent" section in the "Agentforce Developer Guide" for details and examples. (https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html)
16
+
15
17
  # examples
16
18
 
17
19
  - Run the command with no flags to open the default Salesforce login page (https://login.salesforce.com):
@@ -30,9 +32,9 @@ By default, this command uses the global out-of-the-box connected app in your or
30
32
 
31
33
  <%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome
32
34
 
33
- - Use your own connected app by specifying its consumer key (also called client ID):
35
+ - Use your own connected app by specifying its consumer key (also called client ID) and specify additional OAuth scopes:
34
36
 
35
- <%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome --client-id 04580y4051234051
37
+ <%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome --client-id 04580y4051234051 --scopes "sfap_api chatbot_api"
36
38
 
37
39
  # flags.browser.summary
38
40
 
@@ -44,15 +46,15 @@ If you don’t specify --browser, the command uses your default browser. The exa
44
46
 
45
47
  # flags.client-app.summary
46
48
 
47
- Name of the connected app or external client app to link to the user.
49
+ Name to give to the link between the connected app or external client and the already-authenticated user. You can specify any string you want. Must be used with --username.
48
50
 
49
51
  # flags.username.summary
50
52
 
51
- Username to link client app to.
53
+ Username of the already-authenticated user to link to the connected app or external client app. Must be used with --client-app.
52
54
 
53
55
  # flags.scopes.summary
54
56
 
55
- Authentication scopes to request.
57
+ Authentication (OAuth) scopes to request. Use the scope's short name; specify multiple scopes using just one flag instance and separated by spaces: --scopes "sfap_api chatbot_api".
56
58
 
57
59
  # linkedClientApp
58
60
 
@@ -891,13 +891,13 @@
891
891
  ],
892
892
  "args": {},
893
893
  "deprecateAliases": true,
894
- "description": "Opens a Salesforce instance URL in a web browser so you can enter your credentials and log in to your org. After you log in, you can close the browser window.\n\nLogging into an org authorizes the CLI to run other commands that connect to that org, such as deploying or retrieving metadata. You can log into many types of orgs, such as sandboxes, Dev Hubs, Env Hubs, production orgs, and scratch orgs.\n\nWe recommend that you set an alias when you log into an org. Aliases make it easy to later reference this org when running commands that require it. If you don’t set an alias, you use the username that you specified when you logged in to the org. If you run multiple commands that reference the same org, consider setting the org as your default. Use --set-default for your default scratch org or sandbox, or --set-default-dev-hub for your default Dev Hub.\n\nBy default, this command uses the global out-of-the-box connected app in your org. If you need more security or control, such as setting the refresh token timeout or specifying IP ranges, create your own connected app using a digital certificate. Make note of the consumer key (also called cliend id) that’s generated for you. Then specify the consumer key with the --client-id flag.",
894
+ "description": "Opens a Salesforce instance URL in a web browser so you can enter your credentials and log in to your org. After you log in, you can close the browser window.\n\nLogging into an org authorizes the CLI to run other commands that connect to that org, such as deploying or retrieving metadata. You can log into many types of orgs, such as sandboxes, Dev Hubs, Env Hubs, production orgs, and scratch orgs.\n\nWe recommend that you set an alias when you log into an org. Aliases make it easy to later reference this org when running commands that require it. If you don’t set an alias, you use the username that you specified when you logged in to the org. If you run multiple commands that reference the same org, consider setting the org as your default. Use --set-default for your default scratch org or sandbox, or --set-default-dev-hub for your default Dev Hub.\n\nBy default, this command uses the global out-of-the-box connected app in your org. If you need more security or control, such as setting the refresh token timeout or specifying IP ranges, create your own connected app using a digital certificate. Make note of the consumer key (also called cliend id) that’s generated for you. Then specify the consumer key with the --client-id flag.\n\nYou can also use this command to link one or more connected or external client apps in an org to an already-authenticated user. Then Salesforce CLI commands that have API-specific requirements, such as new OAuth scopes or JWT-based access tokens, can use these custom client apps rather than the default one. To create the link, you use the --client-app flag to give the link a name and the --username flag to specify the already-authenticated user. Use the --scopes flag to add OAuth scopes if required. After you create the link, you then use the --client-app value in the other command that has the API-specific requirements. An example of a command that uses this feature is \"agent preview\"; see the \"Preview an Agent\" section in the \"Agentforce Developer Guide\" for details and examples. (https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-preview.html)",
895
895
  "examples": [
896
896
  "Run the command with no flags to open the default Salesforce login page (https://login.salesforce.com):\n<%= config.bin %> <%= command.id %>",
897
897
  "Log in to your Dev Hub, set it as your default Dev Hub, and set an alias that you reference later when you create a scratch org:\n<%= config.bin %> <%= command.id %> --set-default-dev-hub --alias dev-hub",
898
898
  "Log in to a sandbox and set it as your default org:\n<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default",
899
899
  "Use --browser to specify a specific browser, such as Google Chrome:\n<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome",
900
- "Use your own connected app by specifying its consumer key (also called client ID):\n<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome --client-id 04580y4051234051"
900
+ "Use your own connected app by specifying its consumer key (also called client ID) and specify additional OAuth scopes:\n<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome --client-id 04580y4051234051 --scopes \"sfap_api chatbot_api\""
901
901
  ],
902
902
  "flags": {
903
903
  "json": {
@@ -1020,7 +1020,7 @@
1020
1020
  "username"
1021
1021
  ],
1022
1022
  "name": "client-app",
1023
- "summary": "Name of the connected app or external client app to link to the user.",
1023
+ "summary": "Name to give to the link between the connected app or external client and the already-authenticated user. You can specify any string you want. Must be used with --username.",
1024
1024
  "hasDynamicHelp": false,
1025
1025
  "multiple": false,
1026
1026
  "type": "option"
@@ -1030,14 +1030,14 @@
1030
1030
  "client-app"
1031
1031
  ],
1032
1032
  "name": "username",
1033
- "summary": "Username to link client app to.",
1033
+ "summary": "Username of the already-authenticated user to link to the connected app or external client app. Must be used with --client-app.",
1034
1034
  "hasDynamicHelp": false,
1035
1035
  "multiple": false,
1036
1036
  "type": "option"
1037
1037
  },
1038
1038
  "scopes": {
1039
1039
  "name": "scopes",
1040
- "summary": "Authentication scopes to request.",
1040
+ "summary": "Authentication (OAuth) scopes to request. Use the scope's short name; specify multiple scopes using just one flag instance and separated by spaces: --scopes \"sfap_api chatbot_api\".",
1041
1041
  "hasDynamicHelp": false,
1042
1042
  "multiple": false,
1043
1043
  "type": "option"
@@ -1102,5 +1102,5 @@
1102
1102
  ]
1103
1103
  }
1104
1104
  },
1105
- "version": "3.7.0"
1105
+ "version": "3.7.2"
1106
1106
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-auth",
3
3
  "description": "plugin for sf auth commands",
4
- "version": "3.7.0",
4
+ "version": "3.7.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@inquirer/checkbox": "^2.5.0",
9
9
  "@inquirer/select": "^2.5.0",
10
10
  "@oclif/core": "^4",
11
- "@salesforce/core": "^8.13.0",
11
+ "@salesforce/core": "^8.14.0",
12
12
  "@salesforce/kit": "^3.2.3",
13
13
  "@salesforce/plugin-info": "^3.4.65",
14
14
  "@salesforce/sf-plugins-core": "^12.2.2",
@@ -234,7 +234,7 @@
234
234
  "exports": "./lib/index.js",
235
235
  "type": "module",
236
236
  "sfdx": {
237
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.7.0.crt",
238
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.7.0.sig"
237
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.7.2.crt",
238
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.7.2.sig"
239
239
  }
240
240
  }