@salesforce/plugin-auth 3.6.56 → 3.6.58
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.6.
|
|
111
|
+
_See code: [src/commands/org/list/auth.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/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.6.
|
|
165
|
+
_See code: [src/commands/org/login/access-token.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/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.6.
|
|
225
|
+
_See code: [src/commands/org/login/device.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/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.6.
|
|
316
|
+
_See code: [src/commands/org/login/jwt.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/src/commands/org/login/jwt.ts)_
|
|
317
317
|
|
|
318
318
|
## `sf org login sfdx-url`
|
|
319
319
|
|
|
@@ -337,10 +337,15 @@ GLOBAL FLAGS
|
|
|
337
337
|
DESCRIPTION
|
|
338
338
|
Authorize an org using a Salesforce DX authorization URL stored in a file or through standard input (stdin).
|
|
339
339
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
You use the Salesforce DX (SFDX) authorization URL to authorize Salesforce CLI to connect to a target org. The URL
|
|
341
|
+
contains the required data to accomplish the authorization, such as the client ID, client secret, and instance URL.
|
|
342
|
+
You must specify the SFDX authorization URL in this format:
|
|
343
|
+
"force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>". Replace <clientId>, <clientSecret>, <refreshToken>,
|
|
344
|
+
and <instanceUrl> with the values specific to your target org. For <instanceUrl>, don't include a protocol (such as
|
|
345
|
+
"https://"). Note that although the SFDX authorization URL starts with "force://", it has nothing to do with the
|
|
346
|
+
actual authorization. Salesforce CLI always communicates with your org using HTTPS.
|
|
347
|
+
|
|
348
|
+
To see an example of an SFDX authorization URL, run "org display --verbose" on an org.
|
|
344
349
|
|
|
345
350
|
You have three options when creating the authorization file. The easiest option is to redirect the output of the "sf
|
|
346
351
|
org display --verbose --json" command into a file. For example, using an org with alias my-org that you've already
|
|
@@ -378,7 +383,7 @@ EXAMPLES
|
|
|
378
383
|
$ echo url | sf org login sfdx-url --sfdx-url-stdin
|
|
379
384
|
```
|
|
380
385
|
|
|
381
|
-
_See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.
|
|
386
|
+
_See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/src/commands/org/login/sfdx-url.ts)_
|
|
382
387
|
|
|
383
388
|
## `sf org login web`
|
|
384
389
|
|
|
@@ -465,7 +470,7 @@ FLAG DESCRIPTIONS
|
|
|
465
470
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
466
471
|
```
|
|
467
472
|
|
|
468
|
-
_See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.
|
|
473
|
+
_See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/src/commands/org/login/web.ts)_
|
|
469
474
|
|
|
470
475
|
## `sf org logout`
|
|
471
476
|
|
|
@@ -526,6 +531,6 @@ FLAG DESCRIPTIONS
|
|
|
526
531
|
All orgs includes Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.
|
|
527
532
|
```
|
|
528
533
|
|
|
529
|
-
_See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.
|
|
534
|
+
_See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.6.58/src/commands/org/logout.ts)_
|
|
530
535
|
|
|
531
536
|
<!-- commandsstop -->
|
|
@@ -75,14 +75,14 @@ export default class LoginSfdxUrl extends SfCommand {
|
|
|
75
75
|
if (authFile) {
|
|
76
76
|
sfdxAuthUrl = authFile.endsWith('.json') ? await getUrlFromJson(authFile) : await fs.readFile(authFile, 'utf8');
|
|
77
77
|
if (!sfdxAuthUrl) {
|
|
78
|
-
throw new Error(`Error getting the
|
|
78
|
+
throw new Error(`Error getting the SFDX authorization URL from file ${authFile}. Ensure it meets the description shown in the documentation (--help) for this command.`);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
else if (authStdin) {
|
|
82
82
|
sfdxAuthUrl = authStdin;
|
|
83
83
|
}
|
|
84
84
|
else {
|
|
85
|
-
throw new Error('SFDX
|
|
85
|
+
throw new Error('SFDX authorization URL not found.');
|
|
86
86
|
}
|
|
87
87
|
const oauth2Options = AuthInfo.parseSfdxAuthUrl(sfdxAuthUrl);
|
|
88
88
|
const authInfo = await AuthInfo.create({ oauth2Options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sfdx-url.js","sourceRoot":"","sources":["../../../../src/commands/org/login/sfdx-url.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAc,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,eAAe,CAAC,CAAC;AACnF,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAEpF,MAAM,eAAe,GAAG,gEAAgE,CAAC;AAMzF,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAqB;IACtD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IACpF,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,CAAC;IAC7E,MAAM,CAAU,gBAAgB,GA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EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACzG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;;AAGH,MAAM,cAAc,GAAG,KAAK,EAAE,QAAgB,EAAmB,EAAE;IACjE,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG,SAAS,CAAC,YAAY,CAAa,CAAC;IACzD,OAAO,YAAY,CAAC,MAAM,EAAE,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC;AACtE,CAAC,CAAC"}
|
|
@@ -4,7 +4,9 @@ Authorize an org using a Salesforce DX authorization URL stored in a file or thr
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
You use the Salesforce DX (SFDX) authorization URL to authorize Salesforce CLI to connect to a target org. The URL contains the required data to accomplish the authorization, such as the client ID, client secret, and instance URL. You must specify the SFDX authorization URL in this format: "%s". Replace <clientId>, <clientSecret>, <refreshToken>, and <instanceUrl> with the values specific to your target org. For <instanceUrl>, don't include a protocol (such as "https://"). Note that although the SFDX authorization URL starts with "force://", it has nothing to do with the actual authorization. Salesforce CLI always communicates with your org using HTTPS.
|
|
8
|
+
|
|
9
|
+
To see an example of an SFDX authorization URL, run "org display --verbose" on an org.
|
|
8
10
|
|
|
9
11
|
You have three options when creating the authorization 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 with alias my-org that you've already authorized:
|
|
10
12
|
|
package/oclif.manifest.json
CHANGED
|
@@ -708,7 +708,7 @@
|
|
|
708
708
|
],
|
|
709
709
|
"args": {},
|
|
710
710
|
"deprecateAliases": true,
|
|
711
|
-
"description": "
|
|
711
|
+
"description": "You use the Salesforce DX (SFDX) authorization URL to authorize Salesforce CLI to connect to a target org. The URL contains the required data to accomplish the authorization, such as the client ID, client secret, and instance URL. You must specify the SFDX authorization URL in this format: \"force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>\". Replace <clientId>, <clientSecret>, <refreshToken>, and <instanceUrl> with the values specific to your target org. For <instanceUrl>, don't include a protocol (such as \"https://\"). Note that although the SFDX authorization URL starts with \"force://\", it has nothing to do with the actual authorization. Salesforce CLI always communicates with your org using HTTPS.\n\nTo see an example of an SFDX authorization URL, run \"org display --verbose\" on an org.\n\nYou have three options when creating the authorization 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 with alias my-org that you've already authorized:\n\n $ <%= config.bin %> org display --target-org my-org --verbose --json > authFile.json\n\nThe resulting JSON file contains the URL in the \"sfdxAuthUrl\" property of the \"result\" object. You can then reference the file when running this command:\n\n $ <%= config.bin %> <%= command.id %> --sfdx-url-file authFile.json\n\nNOTE: The \"<%= config.bin %> org display --verbose\" command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow.\n\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the authorization URL. Finally, you can create a normal text file that includes just the URL and nothing else.\n\nAlternatively, you can pipe the SFDX authorization URL through standard input by specifying the --sfdx-url-stdin flag.",
|
|
712
712
|
"examples": [
|
|
713
713
|
"Authorize an org using the SFDX authorization URL in the files/authFile.json file:\n<%= config.bin %> <%= command.id %> --sfdx-url-file files/authFile.json",
|
|
714
714
|
"Similar to previous example, but set the org as your default and give it an alias MyDefaultOrg:\n<%= config.bin %> <%= command.id %> --sfdx-url-file files/authFile.json --set-default --alias MyDefaultOrg",
|
|
@@ -1063,5 +1063,5 @@
|
|
|
1063
1063
|
]
|
|
1064
1064
|
}
|
|
1065
1065
|
},
|
|
1066
|
-
"version": "3.6.
|
|
1066
|
+
"version": "3.6.58"
|
|
1067
1067
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-auth",
|
|
3
3
|
"description": "plugin for sf auth commands",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.58",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"@salesforce/core": "^8.5.1",
|
|
12
12
|
"@salesforce/kit": "^3.2.0",
|
|
13
13
|
"@salesforce/plugin-info": "^3.4.2",
|
|
14
|
-
"@salesforce/sf-plugins-core": "^11.3.
|
|
14
|
+
"@salesforce/sf-plugins-core": "^11.3.10",
|
|
15
15
|
"@salesforce/ts-types": "^2.0.11",
|
|
16
16
|
"open": "^10.1.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@oclif/plugin-command-snapshot": "^5.2.
|
|
19
|
+
"@oclif/plugin-command-snapshot": "^5.2.15",
|
|
20
20
|
"@salesforce/cli-plugins-testkit": "^5.3.28",
|
|
21
21
|
"@salesforce/dev-scripts": "^10.2.10",
|
|
22
22
|
"@salesforce/plugin-command-reference": "^3.1.21",
|
|
23
23
|
"@salesforce/ts-sinon": "^1.4.26",
|
|
24
24
|
"eslint-plugin-sf-plugin": "^1.20.5",
|
|
25
|
-
"oclif": "^4.14.
|
|
25
|
+
"oclif": "^4.14.32",
|
|
26
26
|
"ts-node": "^10.9.2",
|
|
27
27
|
"typescript": "^5.5.4"
|
|
28
28
|
},
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"exports": "./lib/index.js",
|
|
234
234
|
"type": "module",
|
|
235
235
|
"sfdx": {
|
|
236
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.6.
|
|
237
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.6.
|
|
236
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.6.58.crt",
|
|
237
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.6.58.sig"
|
|
238
238
|
}
|
|
239
239
|
}
|