@salesforce/plugin-auth 3.7.19 → 3.8.1
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
|
@@ -72,7 +72,6 @@ sfdx plugins
|
|
|
72
72
|
|
|
73
73
|
- [`sf org list auth`](#sf-org-list-auth)
|
|
74
74
|
- [`sf org login access-token`](#sf-org-login-access-token)
|
|
75
|
-
- [`sf org login device`](#sf-org-login-device)
|
|
76
75
|
- [`sf org login jwt`](#sf-org-login-jwt)
|
|
77
76
|
- [`sf org login sfdx-url`](#sf-org-login-sfdx-url)
|
|
78
77
|
- [`sf org login web`](#sf-org-login-web)
|
|
@@ -108,7 +107,7 @@ EXAMPLES
|
|
|
108
107
|
$ sf org list auth
|
|
109
108
|
```
|
|
110
109
|
|
|
111
|
-
_See code: [src/commands/org/list/auth.ts](https://github.com/salesforcecli/plugin-auth/blob/3.
|
|
110
|
+
_See code: [src/commands/org/list/auth.ts](https://github.com/salesforcecli/plugin-auth/blob/3.8.1/src/commands/org/list/auth.ts)_
|
|
112
111
|
|
|
113
112
|
## `sf org login access-token`
|
|
114
113
|
|
|
@@ -162,67 +161,7 @@ FLAG DESCRIPTIONS
|
|
|
162
161
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
163
162
|
```
|
|
164
163
|
|
|
165
|
-
_See code: [src/commands/org/login/access-token.ts](https://github.com/salesforcecli/plugin-auth/blob/3.
|
|
166
|
-
|
|
167
|
-
## `sf org login device`
|
|
168
|
-
|
|
169
|
-
Authorize an org using a device code.
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
USAGE
|
|
173
|
-
$ sf org login device [--json] [--flags-dir <value>] [-i <value>] [-r <value>] [-d] [-s] [-a <value>]
|
|
174
|
-
|
|
175
|
-
FLAGS
|
|
176
|
-
-a, --alias=<value> Alias for the org.
|
|
177
|
-
-d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
|
|
178
|
-
-i, --client-id=<value> OAuth client ID (also called consumer key) of your custom connected app.
|
|
179
|
-
-r, --instance-url=<value> URL of the instance that the org lives on.
|
|
180
|
-
-s, --set-default Set the authenticated org as the default that all org-related commands run against.
|
|
181
|
-
|
|
182
|
-
GLOBAL FLAGS
|
|
183
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
184
|
-
--json Format output as json.
|
|
185
|
-
|
|
186
|
-
DESCRIPTION
|
|
187
|
-
Authorize an org using a device code.
|
|
188
|
-
|
|
189
|
-
Use this command to allow a device to connect to an org.
|
|
190
|
-
|
|
191
|
-
When you run this command, it first displays an 8-digit device code and the URL for verifying the code on your org.
|
|
192
|
-
The default instance URL is https://login.salesforce.com, so if the org you're authorizing is on a different instance,
|
|
193
|
-
use the --instance-url. The command waits while you complete the verification. Open a browser and navigate to the
|
|
194
|
-
displayed verification URL, enter the code, then click Connect. If you aren't already logged into your org, log in,
|
|
195
|
-
and then you're prompted to allow the device to connect to the org. After you successfully authorize the org, you can
|
|
196
|
-
close the browser window.
|
|
197
|
-
|
|
198
|
-
ALIASES
|
|
199
|
-
$ sf force auth device login
|
|
200
|
-
$ sf auth device login
|
|
201
|
-
|
|
202
|
-
EXAMPLES
|
|
203
|
-
Authorize an org using a device code, give the org the alias TestOrg1, and set it as your default Dev Hub org:
|
|
204
|
-
|
|
205
|
-
$ sf org login device --set-default-dev-hub --alias TestOrg1
|
|
206
|
-
|
|
207
|
-
Authorize an org in which you've created a custom connected app with the specified client ID (consumer key):
|
|
208
|
-
|
|
209
|
-
$ sf org login device --client-id <OAuth client id>
|
|
210
|
-
|
|
211
|
-
Authorize a sandbox org with the specified instance URL:
|
|
212
|
-
|
|
213
|
-
$ sf org login device --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com
|
|
214
|
-
|
|
215
|
-
FLAG DESCRIPTIONS
|
|
216
|
-
-r, --instance-url=<value> URL of the instance that the org lives on.
|
|
217
|
-
|
|
218
|
-
If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
|
|
219
|
-
|
|
220
|
-
To specify a My Domain URL, use the format "https://<MyDomainName>.my.salesforce.com".
|
|
221
|
-
|
|
222
|
-
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
_See code: [src/commands/org/login/device.ts](https://github.com/salesforcecli/plugin-auth/blob/3.7.19/src/commands/org/login/device.ts)_
|
|
164
|
+
_See code: [src/commands/org/login/access-token.ts](https://github.com/salesforcecli/plugin-auth/blob/3.8.1/src/commands/org/login/access-token.ts)_
|
|
226
165
|
|
|
227
166
|
## `sf org login jwt`
|
|
228
167
|
|
|
@@ -313,7 +252,7 @@ FLAG DESCRIPTIONS
|
|
|
313
252
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
314
253
|
```
|
|
315
254
|
|
|
316
|
-
_See code: [src/commands/org/login/jwt.ts](https://github.com/salesforcecli/plugin-auth/blob/3.
|
|
255
|
+
_See code: [src/commands/org/login/jwt.ts](https://github.com/salesforcecli/plugin-auth/blob/3.8.1/src/commands/org/login/jwt.ts)_
|
|
317
256
|
|
|
318
257
|
## `sf org login sfdx-url`
|
|
319
258
|
|
|
@@ -383,7 +322,7 @@ EXAMPLES
|
|
|
383
322
|
$ echo url | sf org login sfdx-url --sfdx-url-stdin
|
|
384
323
|
```
|
|
385
324
|
|
|
386
|
-
_See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.
|
|
325
|
+
_See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.8.1/src/commands/org/login/sfdx-url.ts)_
|
|
387
326
|
|
|
388
327
|
## `sf org login web`
|
|
389
328
|
|
|
@@ -488,7 +427,7 @@ FLAG DESCRIPTIONS
|
|
|
488
427
|
To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
|
|
489
428
|
```
|
|
490
429
|
|
|
491
|
-
_See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.
|
|
430
|
+
_See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.8.1/src/commands/org/login/web.ts)_
|
|
492
431
|
|
|
493
432
|
## `sf org logout`
|
|
494
433
|
|
|
@@ -554,6 +493,6 @@ FLAG DESCRIPTIONS
|
|
|
554
493
|
All orgs includes Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.
|
|
555
494
|
```
|
|
556
495
|
|
|
557
|
-
_See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.
|
|
496
|
+
_See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.8.1/src/commands/org/logout.ts)_
|
|
558
497
|
|
|
559
498
|
<!-- commandsstop -->
|
|
@@ -7,6 +7,8 @@ export default class LoginDevice extends SfCommand<DeviceLoginResult> {
|
|
|
7
7
|
static readonly examples: string[];
|
|
8
8
|
static readonly aliases: string[];
|
|
9
9
|
static readonly deprecateAliases = true;
|
|
10
|
+
static readonly hidden = true;
|
|
11
|
+
static readonly deprecated = true;
|
|
10
12
|
static readonly flags: {
|
|
11
13
|
'client-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
14
|
'instance-url': import("@oclif/core/interfaces").OptionFlag<import("url").URL | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -16,6 +16,8 @@ export default class LoginDevice extends SfCommand {
|
|
|
16
16
|
static examples = messages.getMessages('examples');
|
|
17
17
|
static aliases = ['force:auth:device:login', 'auth:device:login'];
|
|
18
18
|
static deprecateAliases = true;
|
|
19
|
+
static hidden = true;
|
|
20
|
+
static deprecated = true;
|
|
19
21
|
static flags = {
|
|
20
22
|
'client-id': Flags.string({
|
|
21
23
|
char: 'i',
|
|
@@ -64,6 +66,8 @@ export default class LoginDevice extends SfCommand {
|
|
|
64
66
|
new Ux().log(JSON.stringify(loginData, null, 2));
|
|
65
67
|
}
|
|
66
68
|
else {
|
|
69
|
+
this.log();
|
|
70
|
+
this.warn('Device Oauth flow is deprecated and will be removed mid January 2026\n');
|
|
67
71
|
this.styledHeader(messages.getMessage('actionRequired'));
|
|
68
72
|
this.log(messages.getMessage('enterCode', [loginData.user_code, loginData.verification_uri]));
|
|
69
73
|
this.log();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../src/commands/org/login/device.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,QAAQ,EACR,kBAAkB,EAClB,QAAQ,GAGT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAC7E,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,cAAc,CAAC,CAAC;AAClF,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAIpF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAA4B;IAC5D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,yBAAyB,EAAE,mBAAmB,CAAC,CAAC;IAC3E,MAAM,CAAU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AM,EAAE,QAAQ,CAAC,CAAC;YAC7D,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;YACrE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;YAC5B,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -453,6 +453,7 @@
|
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
"hasDynamicHelp": false,
|
|
456
|
+
"hidden": true,
|
|
456
457
|
"hiddenAliases": [],
|
|
457
458
|
"id": "org:login:device",
|
|
458
459
|
"pluginAlias": "@salesforce/plugin-auth",
|
|
@@ -461,6 +462,7 @@
|
|
|
461
462
|
"strict": true,
|
|
462
463
|
"summary": "Authorize an org using a device code.",
|
|
463
464
|
"enableJsonFlag": true,
|
|
465
|
+
"deprecated": true,
|
|
464
466
|
"isESM": true,
|
|
465
467
|
"relativePath": [
|
|
466
468
|
"lib",
|
|
@@ -1102,5 +1104,5 @@
|
|
|
1102
1104
|
]
|
|
1103
1105
|
}
|
|
1104
1106
|
},
|
|
1105
|
-
"version": "3.
|
|
1107
|
+
"version": "3.8.1"
|
|
1106
1108
|
}
|
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.
|
|
4
|
+
"version": "3.8.1",
|
|
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.
|
|
11
|
+
"@salesforce/core": "^8.20.0",
|
|
12
12
|
"@salesforce/kit": "^3.2.3",
|
|
13
13
|
"@salesforce/plugin-info": "^3.4.80",
|
|
14
14
|
"@salesforce/sf-plugins-core": "^12.2.4",
|
|
@@ -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.
|
|
238
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.
|
|
237
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.8.1.crt",
|
|
238
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/3.8.1.sig"
|
|
239
239
|
}
|
|
240
240
|
}
|