@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
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-auth",
3
3
  "description": "plugin for sfdx auth commands",
4
- "version": "2.4.2",
4
+ "version": "2.5.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "main": "lib/index.js",
8
8
  "dependencies": {
9
9
  "@oclif/core": "^2.0.7",
10
- "@salesforce/command": "^5.2.43",
11
- "@salesforce/core": "^3.32.12",
12
- "@salesforce/kit": "^1.8.2",
10
+ "@salesforce/core": "^3.33.1",
11
+ "@salesforce/kit": "^1.8.3",
12
+ "@salesforce/sf-plugins-core": "^2.1.0",
13
13
  "chalk": "^4.1.2",
14
14
  "fs-extra": "^10.0.1",
15
15
  "open": "^8.2.1",
16
16
  "tslib": "^2"
17
17
  },
18
18
  "devDependencies": {
19
- "@oclif/plugin-command-snapshot": "^3.2.16",
20
- "@salesforce/cli-plugins-testkit": "^3.2.20",
19
+ "@oclif/plugin-command-snapshot": "^3.3.1",
20
+ "@salesforce/cli-plugins-testkit": "^3.2.18",
21
21
  "@salesforce/dev-config": "^3.1.0",
22
- "@salesforce/dev-scripts": "^3.1.0",
22
+ "@salesforce/dev-scripts": "^3.1.1",
23
23
  "@salesforce/plugin-command-reference": "^2",
24
24
  "@salesforce/plugin-config": "^1.4.23",
25
25
  "@salesforce/prettier-config": "^0.0.2",
26
26
  "@salesforce/ts-sinon": "^1.4.4",
27
27
  "@swc/core": "^1.3.32",
28
28
  "@types/fs-extra": "^9.0.13",
29
- "@types/graceful-fs": "^4.1.5",
29
+ "@types/graceful-fs": "^4.1.6",
30
30
  "@types/mkdirp": "^1.0.1",
31
- "@typescript-eslint/eslint-plugin": "^5.45.0",
32
- "@typescript-eslint/parser": "^5.47.1",
31
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
32
+ "@typescript-eslint/parser": "^5.49.0",
33
33
  "chai": "^4.3.7",
34
34
  "eslint": "^8.33.0",
35
35
  "eslint-config-prettier": "^8.6.0",
@@ -38,7 +38,8 @@
38
38
  "eslint-config-salesforce-typescript": "^1.1.1",
39
39
  "eslint-plugin-header": "^3.0.0",
40
40
  "eslint-plugin-import": "2.27.5",
41
- "eslint-plugin-jsdoc": "^39.6.7",
41
+ "eslint-plugin-jsdoc": "^39.6.9",
42
+ "eslint-plugin-sf-plugin": "^1.7.0",
42
43
  "husky": "^7.0.4",
43
44
  "mocha": "^9.1.3",
44
45
  "nyc": "^15.1.0",
@@ -114,7 +115,7 @@
114
115
  "format": "sf-format",
115
116
  "lint": "sf-lint",
116
117
  "postpack": "shx rm -f oclif.manifest.json",
117
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:command-reference",
118
+ "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference",
118
119
  "prepack": "sf-prepack",
119
120
  "prepare": "sf-install",
120
121
  "pretest": "sf-compile-test",
@@ -122,6 +123,7 @@
122
123
  "test": "sf-test",
123
124
  "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
124
125
  "test:deprecation-policy": "./bin/dev snapshot:compare",
126
+ "test:json-schema": "./bin/dev schema:compare",
125
127
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
126
128
  "version": "oclif readme"
127
129
  },
@@ -129,7 +131,7 @@
129
131
  "access": "public"
130
132
  },
131
133
  "sfdx": {
132
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.4.2.crt",
133
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.4.2.sig"
134
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.5.0.crt",
135
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.5.0.sig"
134
136
  }
135
137
  }
package/lib/prompts.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { UX } from '@salesforce/command';
2
- export declare class Prompts {
3
- static shouldExitCommand(ux: UX, noPrompt?: boolean, message?: string): Promise<boolean>;
4
- static shouldRunCommand(ux: UX, noPrompt?: boolean, message?: string): Promise<boolean>;
5
- static askForClientSecret(ux: UX, disableMasking?: boolean): Promise<string>;
6
- static askForAccessToken(ux: UX, disableMasking?: boolean): Promise<string>;
7
- static askOverwriteAuthFile(ux: UX, username: string): Promise<boolean>;
8
- private static askForHiddenResponse;
9
- private static answeredYes;
10
- private static answeredNo;
11
- }
package/lib/prompts.js DELETED
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Prompts = void 0;
4
- /*
5
- * Copyright (c) 2020, salesforce.com, inc.
6
- * All rights reserved.
7
- * Licensed under the BSD 3-Clause license.
8
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
- */
10
- const core_1 = require("@salesforce/core");
11
- const chalk = require("chalk");
12
- core_1.Messages.importMessagesDirectory(__dirname);
13
- const messages = core_1.Messages.loadMessages('@salesforce/plugin-auth', 'messages');
14
- function dimMessage(message) {
15
- return chalk.dim(message);
16
- }
17
- class Prompts {
18
- static async shouldExitCommand(ux, noPrompt, message) {
19
- if (noPrompt || core_1.Global.getEnvironmentMode() !== core_1.Mode.DEMO) {
20
- return false;
21
- }
22
- else {
23
- const msg = dimMessage(message || messages.getMessage('warnAuth'));
24
- const answer = await ux.prompt(msg);
25
- return Prompts.answeredNo(answer);
26
- }
27
- }
28
- static async shouldRunCommand(ux, noPrompt, message) {
29
- if (noPrompt || core_1.Global.getEnvironmentMode() === core_1.Mode.DEMO) {
30
- return true;
31
- }
32
- else {
33
- const msg = dimMessage(message || messages.getMessage('warnAuth'));
34
- const answer = await ux.prompt(msg);
35
- return Prompts.answeredYes(answer);
36
- }
37
- }
38
- static async askForClientSecret(ux, disableMasking = false) {
39
- return Prompts.askForHiddenResponse(ux, 'clientSecretStdin', disableMasking);
40
- }
41
- static async askForAccessToken(ux, disableMasking = false) {
42
- return Prompts.askForHiddenResponse(ux, 'accessTokenStdin', disableMasking);
43
- }
44
- static async askOverwriteAuthFile(ux, username) {
45
- const yN = await ux.prompt(messages.getMessage('overwriteAccessTokenAuthUserFile', [username]), {
46
- type: 'normal',
47
- default: 'y',
48
- });
49
- return Prompts.answeredYes(yN);
50
- }
51
- static async askForHiddenResponse(ux, messageKey, disableMasking = false) {
52
- const msg = dimMessage(messages.getMessage(messageKey));
53
- return ux.prompt(msg, {
54
- type: disableMasking ? 'normal' : 'hide',
55
- });
56
- }
57
- static answeredYes(answer) {
58
- return ['YES', 'Y'].includes(answer.toUpperCase());
59
- }
60
- static answeredNo(answer) {
61
- return !['YES', 'Y'].includes(answer.toUpperCase());
62
- }
63
- }
64
- exports.Prompts = Prompts;
65
- //# sourceMappingURL=prompts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"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"}
@@ -1,9 +0,0 @@
1
- {
2
- "description": "authorize an org using an existing Salesforce access token\nBy 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 --noprompt to not be prompted.\nTo 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 --noprompt parameter.",
3
- "examples": [
4
- "$ sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com",
5
- "$ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx",
6
- "$ sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt"
7
- ],
8
- "invalidAccessTokenFormat": "The access token isn't in the correct format.\nIt should follow this pattern: %s."
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "description": "authorize an org using a device code\nYou 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.",
3
- "examples": [
4
- "$ sfdx auth:device:login -d -a TestOrg1",
5
- "$ sfdx auth:device:login -i <OAuth client id>",
6
- "$ sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"
7
- ],
8
- "actionRequired": "Action Required!",
9
- "enterCode": "Enter %s user code in the verification URL %s",
10
- "success": "Login successful for %s. You can now close the browser."
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "description": "authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\nIf you specify an --instanceurl 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 --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.",
3
- "examples": [
4
- "$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>",
5
- "$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg",
6
- "$ sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"
7
- ],
8
- "username": "authentication username",
9
- "key": "path to a file containing the private key",
10
- "JwtGrantError": "We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: %s"
11
- }
@@ -1,4 +0,0 @@
1
- {
2
- "description": "list auth connection information",
3
- "noResultsFound": "No results found"
4
- }
@@ -1,9 +0,0 @@
1
- {
2
- "description": "log out from authorized orgs\nBy default, this command logs you out from your default scratch org.",
3
- "examples": ["$ sfdx auth:logout -u me@my.org", "$ sfdx auth:logout -a", "$ sfdx auth:logout -p"],
4
- "all": "include all authenticated orgs",
5
- "allLong": "Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.",
6
- "logoutCommandYesNo": "Are you sure you want to log out from these org(s)?\n%s\n\nImportant: You need a password to reauthorize scratch orgs. By default, scratch orgs have no password. If you still need your scratch orgs, run \"sfdx force:user:password:generate\" before logging out. If you don't need the scratch orgs anymore, run \"sfdx force:org:delete\" instead of logging out.\n\nLog out (y/n)?",
7
- "specifiedBothUserAndAllError": "Specify either --targetusername or --all.",
8
- "logoutOrgCommandSuccess": "Successfully logged out of orgs: %s"
9
- }
@@ -1,37 +0,0 @@
1
- {
2
- "HelpDefaults": "If not supplied, the apiversion, template, and outputdir use default values.\n",
3
- "HelpOutputDirRelative": "The outputdir can be an absolute path or relative to the current working directory.\n",
4
- "HelpOutputDirRelativeLightning": "If you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n",
5
- "HelpExamplesTitle": "\nExamples:\n",
6
- "OutputDirFlagDescription": "folder for saving the created files",
7
- "OutputDirFlagLongDescription": "The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.",
8
- "TemplateFlagDescription": "template to use for file creation",
9
- "TemplateFlagLongDescription": "The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.",
10
- "TargetDirOutput": "target dir = %s",
11
- "App": "app",
12
- "Event": "event",
13
- "Interface": "interface",
14
- "Test": "test",
15
- "Component": "component",
16
- "Page": "page",
17
- "AlphaNumericNameError": "Name must contain only alphanumeric characters.",
18
- "NameMustStartWithLetterError": "Name must start with a letter.",
19
- "EndWithUnderscoreError": "Name can't end with an underscore.",
20
- "DoubleUnderscoreError": "Name can't contain 2 consecutive underscores.",
21
- "clientId": "OAuth client ID (sometimes called the consumer key)",
22
- "setDefaultDevHub": "set the authenticated org as the default dev hub org for scratch org creation",
23
- "setDefaultUsername": "set the authenticated org as the default username that all commands run against",
24
- "setAlias": "set an alias for the authenticated org",
25
- "instanceUrl": "the login URL of the instance the org lives on",
26
- "authorizeCommandSuccess": "Successfully authorized %s with org ID %s",
27
- "authorizeCommandCloseBrowser": "You may now close the browser",
28
- "warnAuth": "Logging in to a business or production org is not recommended on a demo or shared machine. Please run \"sfdx auth:logout --targetusername <your username> --noprompt\" when finished using this org, which is similar to logging out of the org in the browser.\n\nDo you want to authorize this org for use with the Salesforce CLI (y/n)?",
29
- "noPromptAuth": "do not prompt for auth confirmation in demo mode",
30
- "disableMasking": "disable masking of user input (for use with problematic terminals)",
31
- "clientSecretStdin": "OAuth client secret of personal connected app?",
32
- "invalidInstanceUrl": "Invalid instance URL. Specify a Salesforce instance URL using the format <domainname>.salesforce.com",
33
- "accessTokenStdin": "Access token of user to use for authentication",
34
- "noPrompt": "do not prompt for confirmation",
35
- "overwriteAuthFileYesNo": "An authorization file exists for user \"%s\". Are you sure you want to save the file?\n\nSave the user (y/n)?",
36
- "overwriteAccessTokenAuthUserFile": "A file already exists for user \"%s\", which is associated with the access token you provided.\nAre you sure you want to overwrite the existing file? (y/n)?"
37
- }
@@ -1,8 +0,0 @@
1
- {
2
- "description": "authorize an org using an SFDX auth URL stored within a file\nThe 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://\").\n\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `force: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 auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.",
3
- "file": "path to a file containing the sfdx url",
4
- "examples": [
5
- "$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>",
6
- "$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"
7
- ]
8
- }
@@ -1,12 +0,0 @@
1
- {
2
- "description": "authorize an org using the web login flow\nIf you specify an --instanceurl 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.\nTo 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.",
3
- "examples": [
4
- "$ sfdx auth:web:login -a TestOrg1",
5
- "$ sfdx auth:web:login -i <OAuth client id>",
6
- "$ sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com",
7
- "$ sfdx auth:web:login -a TestOrg1 -b firefox"
8
- ],
9
- "browser": "browser where the org opens",
10
- "deviceWarning": "auth:web:login doesn't work when authorizing to a headless environment. Use auth:device:login instead.",
11
- "invalidClientId": "Invalid client credentials. Verify the OAuth client secret and ID. %s"
12
- }