@zowe/zosmf-for-zowe-sdk 8.31.5 → 8.32.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/lib/ChangePassword.d.ts +30 -0
- package/lib/ChangePassword.d.ts.map +1 -0
- package/lib/ChangePassword.js +123 -0
- package/lib/ChangePassword.js.map +1 -0
- package/lib/ZosmfSession.d.ts +4 -0
- package/lib/ZosmfSession.d.ts.map +1 -1
- package/lib/ZosmfSession.js +11 -0
- package/lib/ZosmfSession.js.map +1 -1
- package/lib/constants/Zosmf.constants.d.ts.map +1 -1
- package/lib/constants/Zosmf.constants.js +5 -0
- package/lib/constants/Zosmf.constants.js.map +1 -1
- package/lib/constants/Zosmf.profile.d.ts.map +1 -1
- package/lib/constants/Zosmf.profile.js +4 -0
- package/lib/constants/Zosmf.profile.js.map +1 -1
- package/lib/doc/IZosmfChangePasswordResponse.d.ts +28 -0
- package/lib/doc/IZosmfChangePasswordResponse.d.ts.map +1 -0
- package/lib/doc/IZosmfChangePasswordResponse.js +13 -0
- package/lib/doc/IZosmfChangePasswordResponse.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AbstractSession } from "@zowe/imperative";
|
|
2
|
+
import { IZosmfChangePasswordResponse } from "./doc/IZosmfChangePasswordResponse";
|
|
3
|
+
/**
|
|
4
|
+
* Class to handle changing a z/OS password or passphrase via z/OSMF.
|
|
5
|
+
*
|
|
6
|
+
* https://www.ibm.com/docs/en/zos/3.2.0?topic=services-change-user-password-passphrase
|
|
7
|
+
* @export
|
|
8
|
+
* @class ZosmfChangePassword
|
|
9
|
+
*/
|
|
10
|
+
export declare class ZosmfChangePassword {
|
|
11
|
+
private static readonly CENSORED;
|
|
12
|
+
private static readonly EXTRA_RET_CODE;
|
|
13
|
+
private static readonly EXTRA_REASON_CODE;
|
|
14
|
+
/**
|
|
15
|
+
* Change the password or passphrase for a z/OS user ID via z/OSMF.
|
|
16
|
+
* @param {AbstractSession} session
|
|
17
|
+
* @param {string} newPassword
|
|
18
|
+
* @returns {Promise<IZosmfChangePasswordResponse>}
|
|
19
|
+
*/
|
|
20
|
+
static changePassword(session: AbstractSession, newPassword: string): Promise<IZosmfChangePasswordResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Remove passwords from diagnostic fields so they are never shown to the user or written to logs.
|
|
23
|
+
* @param err - The original error
|
|
24
|
+
* @param passwords - Password strings to censor
|
|
25
|
+
* @returns The sanitised error
|
|
26
|
+
*/
|
|
27
|
+
private static sanitizeError;
|
|
28
|
+
private static get log();
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=ChangePassword.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangePassword.d.ts","sourceRoot":"","sources":["../src/ChangePassword.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAsD,MAAM,kBAAkB,CAAC;AAIvG,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF;;;;;;GAMG;AACH,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAG1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAK;IAC3C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAK;IAE9C;;;;;OAKG;WACiB,cAAc,CAC9B,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,4BAA4B,CAAC;IA+BxC;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAwD5B,OAAO,CAAC,MAAM,KAAK,GAAG,GAErB;CACJ"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.ZosmfChangePassword = void 0;
|
|
23
|
+
const util_1 = require("util");
|
|
24
|
+
const imperative_1 = require("@zowe/imperative");
|
|
25
|
+
const core_for_zowe_sdk_1 = require("@zowe/core-for-zowe-sdk");
|
|
26
|
+
const Zosmf_constants_1 = require("./constants/Zosmf.constants");
|
|
27
|
+
const Zosmf_messages_1 = require("./constants/Zosmf.messages");
|
|
28
|
+
/**
|
|
29
|
+
* Class to handle changing a z/OS password or passphrase via z/OSMF.
|
|
30
|
+
*
|
|
31
|
+
* https://www.ibm.com/docs/en/zos/3.2.0?topic=services-change-user-password-passphrase
|
|
32
|
+
* @export
|
|
33
|
+
* @class ZosmfChangePassword
|
|
34
|
+
*/
|
|
35
|
+
class ZosmfChangePassword {
|
|
36
|
+
/**
|
|
37
|
+
* Change the password or passphrase for a z/OS user ID via z/OSMF.
|
|
38
|
+
* @param {AbstractSession} session
|
|
39
|
+
* @param {string} newPassword
|
|
40
|
+
* @returns {Promise<IZosmfChangePasswordResponse>}
|
|
41
|
+
*/
|
|
42
|
+
static changePassword(session, newPassword) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
ZosmfChangePassword.log.trace("ZosmfChangePassword.changePassword()");
|
|
45
|
+
imperative_1.ImperativeExpect.toNotBeNullOrUndefined(session, Zosmf_messages_1.ZosmfMessages.missingSession.message);
|
|
46
|
+
imperative_1.ImperativeExpect.toNotBeNullOrUndefined(newPassword, "New password must be defined");
|
|
47
|
+
const userID = session.ISession.user;
|
|
48
|
+
const oldPwd = session.ISession.password;
|
|
49
|
+
imperative_1.ImperativeExpect.toNotBeNullOrUndefined(userID, "Session user must be defined");
|
|
50
|
+
imperative_1.ImperativeExpect.toNotBeNullOrUndefined(oldPwd, "Session password must be defined");
|
|
51
|
+
let zosmfResponse;
|
|
52
|
+
try {
|
|
53
|
+
zosmfResponse = yield core_for_zowe_sdk_1.ZosmfRestClient.putExpectJSON(session, Zosmf_constants_1.ZosmfConstants.AUTHENTICATE_RESOURCE, [imperative_1.Headers.APPLICATION_JSON], { userID, oldPwd, newPwd: newPassword });
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
throw ZosmfChangePassword.sanitizeError(err, oldPwd, newPassword);
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
success: zosmfResponse.returnCode === 0 && zosmfResponse.reasonCode === 0,
|
|
60
|
+
returnCode: zosmfResponse.returnCode,
|
|
61
|
+
reasonCode: zosmfResponse.reasonCode,
|
|
62
|
+
message: zosmfResponse.message
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Remove passwords from diagnostic fields so they are never shown to the user or written to logs.
|
|
68
|
+
* @param err - The original error
|
|
69
|
+
* @param passwords - Password strings to censor
|
|
70
|
+
* @returns The sanitised error
|
|
71
|
+
*/
|
|
72
|
+
static sanitizeError(err, ...passwords) {
|
|
73
|
+
if (err instanceof imperative_1.RestClientError) {
|
|
74
|
+
// Censor password values inside the payload object
|
|
75
|
+
if (err.mDetails.payload != null && typeof err.mDetails.payload === "object") {
|
|
76
|
+
for (const key of Object.keys(err.mDetails.payload)) {
|
|
77
|
+
if (typeof err.mDetails.payload[key] === "string") {
|
|
78
|
+
for (const pwd of passwords) {
|
|
79
|
+
if (err.mDetails.payload[key] === pwd) {
|
|
80
|
+
err.mDetails.payload[key] = this.CENSORED;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Censor the payload string that appears in additionalDetails
|
|
87
|
+
if (err.mDetails.additionalDetails && err.mDetails.payload != null) {
|
|
88
|
+
const censoredPayloadStr = (0, util_1.inspect)(err.mDetails.payload, { depth: null });
|
|
89
|
+
err.mDetails.additionalDetails = err.mDetails.additionalDetails.replace(/\nPayload: +.*/, "\nPayload: " + censoredPayloadStr);
|
|
90
|
+
}
|
|
91
|
+
// Append extra context when the generic 8/2 error is returned
|
|
92
|
+
// https://www.ibm.com/docs/en/zos/3.2.0?topic=services-change-user-password-passphrase#izuprog_API_PUTWebTokenChangePWService__title__11
|
|
93
|
+
if (err.causeErrors) {
|
|
94
|
+
try {
|
|
95
|
+
const errorResponse = JSON.parse(err.causeErrors);
|
|
96
|
+
if (errorResponse.returnCode === this.EXTRA_RET_CODE &&
|
|
97
|
+
errorResponse.reasonCode === this.EXTRA_REASON_CODE) {
|
|
98
|
+
const extraDetails = "\n\nNote: This generic failure message may also indicate " +
|
|
99
|
+
"that the user ID was revoked or the user ID is not defined in RACF.";
|
|
100
|
+
const updatedDetails = Object.assign({}, err.mDetails);
|
|
101
|
+
updatedDetails.msg += extraDetails;
|
|
102
|
+
return new imperative_1.RestClientError(updatedDetails);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
catch (parseErr) {
|
|
106
|
+
this.log.warn("Unable to parse error response body for additional details. " +
|
|
107
|
+
"Original error will be returned without additional details.\n" +
|
|
108
|
+
"Parse error: %s\nError body: %s", parseErr, err.causeErrors);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return err;
|
|
113
|
+
}
|
|
114
|
+
static get log() {
|
|
115
|
+
return imperative_1.Logger.getAppLogger();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.ZosmfChangePassword = ZosmfChangePassword;
|
|
119
|
+
ZosmfChangePassword.CENSORED = "****";
|
|
120
|
+
/* z/OSMF return/reason codes that may hide specific errors */
|
|
121
|
+
ZosmfChangePassword.EXTRA_RET_CODE = 8;
|
|
122
|
+
ZosmfChangePassword.EXTRA_REASON_CODE = 2;
|
|
123
|
+
//# sourceMappingURL=ChangePassword.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangePassword.js","sourceRoot":"","sources":["../src/ChangePassword.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,+BAA+B;AAC/B,iDAAuG;AACvG,+DAA0D;AAC1D,iEAA6D;AAC7D,+DAA2D;AAG3D;;;;;;GAMG;AACH,MAAa,mBAAmB;IAO5B;;;;;OAKG;IACI,MAAM,CAAO,cAAc,CAC9B,OAAwB,EACxB,WAAmB;;YAEnB,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;YACtE,6BAAgB,CAAC,sBAAsB,CAAC,OAAO,EAAE,8BAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACvF,6BAAgB,CAAC,sBAAsB,CAAC,WAAW,EAAE,8BAA8B,CAAC,CAAC;YAErF,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrC,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAEzC,6BAAgB,CAAC,sBAAsB,CAAC,MAAM,EAA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AA+D;wBAC/D,iCAAiC,EACjC,QAAQ,EACR,GAAG,CAAC,WAAW,CAClB,CAAC;gBACN,CAAC;YACL,CAAC;QACL,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEO,MAAM,KAAK,GAAG;QAClB,OAAO,mBAAM,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;;AA/GL,kDAgHC;AA/G2B,4BAAQ,GAAG,MAAM,CAAC;AAE1C,8DAA8D;AACtC,kCAAc,GAAG,CAAC,CAAC;AACnB,qCAAiB,GAAG,CAAC,CAAC"}
|
package/lib/ZosmfSession.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ export declare class ZosmfSession {
|
|
|
41
41
|
* Option used to specify the path to the cert's key file for authentication
|
|
42
42
|
*/
|
|
43
43
|
static ZOSMF_OPTION_CERT_KEY_FILE: ICommandOptionDefinition;
|
|
44
|
+
/**
|
|
45
|
+
* Option used to specify the account name for PKCS 12 certificate stored in credential manager
|
|
46
|
+
*/
|
|
47
|
+
static ZOSMF_OPTION_CERT_ACCOUNT: ICommandOptionDefinition;
|
|
44
48
|
/**
|
|
45
49
|
* Option used to specify the path to the certificate file for authentication
|
|
46
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZosmfSession.d.ts","sourceRoot":"","sources":["../src/ZosmfSession.ts"],"names":[],"mappings":"AAWA,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EAExB,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAE1B;;;GAGG;AACH,qBAAa,YAAY;IAErB,OAAc,6BAA6B,SAA8B;IAEzE;;OAEG;IACH,OAAc,iBAAiB,EAAE,wBAAwB,CAOvD;IAEF;;OAEG;IACH,OAAc,iBAAiB,EAAE,wBAAwB,CAOvD;IAEF;;OAEG;IACH,OAAc,iBAAiB,EAAE,wBAAwB,CAOvD;IAEF;;OAEG;IACH,OAAc,qBAAqB,EAAE,wBAAwB,CAO3D;IAEF;;OAEG;IACH,OAAc,gCAAg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B,EAAE,wBAAwB,CAMrE;IAEF;;OAEG;IACH,OAAc,yCAAyC,EAAE,wBAAwB,CAM/E;IAEF;;;OAGG;IACH,OAAc,wBAAwB,EAAE,wBAAwB,EAAE,CAchE;IAEF;;;;OAIG;WACW,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,QAAQ;IAYtE,OAAO,CAAC,MAAM,KAAK,GAAG,GAErB;CACJ"}
|
package/lib/ZosmfSession.js
CHANGED
|
@@ -30,6 +30,7 @@ class ZosmfSession {
|
|
|
30
30
|
protocol: args.protocol ? args.protocol.toLowerCase() : 'https',
|
|
31
31
|
requestCompletionTimeout: isNaN(args.completionTimeout) ? undefined : args.completionTimeout * msToSecs,
|
|
32
32
|
socketConnectTimeout: isNaN(args.establishConnectionTimeout) ? undefined : args.establishConnectionTimeout * msToSecs,
|
|
33
|
+
certAccount: args.certAccount,
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
static get log() {
|
|
@@ -134,6 +135,15 @@ ZosmfSession.ZOSMF_OPTION_CERT_KEY_FILE = {
|
|
|
134
135
|
type: "existingLocalFile",
|
|
135
136
|
group: ZosmfSession.ZOSMF_CONNECTION_OPTION_GROUP
|
|
136
137
|
};
|
|
138
|
+
/**
|
|
139
|
+
* Option used to specify the account name for PKCS 12 certificate stored in credential manager
|
|
140
|
+
*/
|
|
141
|
+
ZosmfSession.ZOSMF_OPTION_CERT_ACCOUNT = {
|
|
142
|
+
name: "cert-account",
|
|
143
|
+
description: "The account name for PKCS 12 certificate stored in credential manager",
|
|
144
|
+
type: "string",
|
|
145
|
+
group: ZosmfSession.ZOSMF_CONNECTION_OPTION_GROUP
|
|
146
|
+
};
|
|
137
147
|
/**
|
|
138
148
|
* Option used to specify the path to the certificate file for authentication
|
|
139
149
|
*/
|
|
@@ -177,6 +187,7 @@ ZosmfSession.ZOSMF_CONNECTION_OPTIONS = [
|
|
|
177
187
|
ZosmfSession.ZOSMF_OPTION_PROTOCOL,
|
|
178
188
|
ZosmfSession.ZOSMF_OPTION_CERT_FILE,
|
|
179
189
|
ZosmfSession.ZOSMF_OPTION_CERT_KEY_FILE,
|
|
190
|
+
ZosmfSession.ZOSMF_OPTION_CERT_ACCOUNT,
|
|
180
191
|
ZosmfSession.ZOSMF_OPTION_COMPLETION_TIMEOUT,
|
|
181
192
|
ZosmfSession.ZOSMF_OPTION_ESTABLISH_CONNECTION_TIMEOUT,
|
|
182
193
|
// ZosmfSession.ZOSMF_OPTION_CERT_FILE_PASSPHRASE
|
package/lib/ZosmfSession.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZosmfSession.js","sourceRoot":"","sources":["../src/ZosmfSession.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAK0B;AAE1B;;;GAGG;AACH,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"ZosmfSession.js","sourceRoot":"","sources":["../src/ZosmfSession.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAK0B;AAE1B;;;GAGG;AACH,MAAa,YAAY;IA2KrB;;;;OAIG;IACI,MAAM,CAAC,qBAAqB,CAAC,IAAuB;QACvD,MAAM,QAAQ,GAAG,IAAI,CAAC;QACtB,OAAO;YACH,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,OAAO;YAC/D,wBAAwB,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,QAAQ;YACvG,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,GAA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B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,4FAA4F;IACzG,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,YAAY,CAAC,6BAA6B;CACpD,CAAC;AAEF;;GAEG;AACW,sDAAyC,GAA6B;IAChF,IAAI,EAAE,8BAA8B;IACpC,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,+GAA+G;IAC5H,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,YAAY,CAAC,6BAA6B;CACpD,CAAC;AAEF;;;GAGG;AACW,qCAAwB,GAA+B;IACjE,YAAY,CAAC,iBAAiB;IAC9B,YAAY,CAAC,iBAAiB;IAC9B,YAAY,CAAC,iBAAiB;IAC9B,YAAY,CAAC,qBAAqB;IAClC,YAAY,CAAC,gCAAgC;IAC7C,YAAY,CAAC,sBAAsB;IACnC,YAAY,CAAC,qBAAqB;IAClC,YAAY,CAAC,sBAAsB;IACnC,YAAY,CAAC,0BAA0B;IACvC,YAAY,CAAC,yBAAyB;IACtC,YAAY,CAAC,+BAA+B;IAC5C,YAAY,CAAC,yCAAyC;IACtD,iDAAiD;CACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zosmf.constants.d.ts","sourceRoot":"","sources":["../../src/constants/Zosmf.constants.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"Zosmf.constants.d.ts","sourceRoot":"","sources":["../../src/constants/Zosmf.constants.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAqEhD,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAA;CAetE,CAAC"}
|
|
@@ -35,6 +35,11 @@ exports.ZosmfConstants = {
|
|
|
35
35
|
* @type {string}
|
|
36
36
|
*/
|
|
37
37
|
SYSTEMS: "/systems",
|
|
38
|
+
/**
|
|
39
|
+
* URI for the z/OSMF change password/passphrase endpoint
|
|
40
|
+
* @type {string}
|
|
41
|
+
*/
|
|
42
|
+
AUTHENTICATE_RESOURCE: "/zosmf/services/authenticate",
|
|
38
43
|
/**
|
|
39
44
|
* Known error codes return by the API
|
|
40
45
|
* @type {object}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zosmf.constants.js","sourceRoot":"","sources":["../../src/constants/Zosmf.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,cAAc,GAA2B;IAClD;;;OAGG;IACH,QAAQ,EAAE,QAAQ;IAElB;;;OAGG;IACH,IAAI,EAAE,OAAO;IAEb;;;OAGG;IACH,QAAQ,EAAE,eAAe;IAEzB;;;OAGG;IACH,OAAO,EAAE,UAAU;IAEnB;;;OAGG;IACH,WAAW,EAAE;QACT;;;WAGG;QACH,aAAa,EAAE,WAAW;QAE1B;;;WAGG;QACH,QAAQ,EAAE,cAAc;QAExB;;;WAGG;QACH,yBAAyB,EAAE,2BAA2B;QAEtD;;;WAGG;QACH,+BAA+B,EAAE,iCAAiC;KACrE;IACD,iFAAiF;IACjF,QAAQ,EAAE;QACN,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;KACb;CACJ,CAAC;AAGF;;GAEG;AACU,QAAA,eAAe,GAAgD;IACxE;;;OAGG;IACH,eAAe,EAAE;QACb,IAAI,EAAE,kBAAkB;QACxB,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B;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zosmf.profile.d.ts","sourceRoot":"","sources":["../../src/constants/Zosmf.profile.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAIpE;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"Zosmf.profile.d.ts","sourceRoot":"","sources":["../../src/constants/Zosmf.profile.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAIpE;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,gCAyE1B,CAAC"}
|
|
@@ -56,6 +56,10 @@ exports.ZosmfProfile = {
|
|
|
56
56
|
type: "string",
|
|
57
57
|
optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_CERT_KEY_FILE
|
|
58
58
|
},
|
|
59
|
+
certAccount: {
|
|
60
|
+
type: "string",
|
|
61
|
+
optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_CERT_ACCOUNT
|
|
62
|
+
},
|
|
59
63
|
// certFilePassphrase: {
|
|
60
64
|
// type: "string",
|
|
61
65
|
// secure: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zosmf.profile.js","sourceRoot":"","sources":["../../src/constants/Zosmf.profile.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAC/C,uDAAoD;AAEpD;;;;GAIG;AACU,QAAA,YAAY,GACzB;IACI,IAAI,EAAE,OAAO;IACb,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,gBAAgB;QAC7B,UAAU,EAAE;YACR,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,gBAAgB,EAAE,2BAAY,CAAC,iBAAiB;aACnD;YACD,IAAI,EAAE;g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,2BAAY,CAAC,sBAAsB;aACxD;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,gBAAgB,EAAE,2BAAY,CAAC,qBAAqB;aACvD;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,gBAAgB,EAAE;oBACd,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,CAAC,IAAI,CAAC;oBACf,WAAW,EAAE,sEAAsE;wBAC/E,qDAAqD;oBACzD,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,gBAAgB,EAAE,iCAAe,CAAC,eAAe;aACpD;SACJ;QACD,QAAQ,EAAE,EAAE;KACf;CACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* z/OSMF change password/passphrase response.
|
|
3
|
+
* @export
|
|
4
|
+
* @interface IZosmfChangePasswordResponse
|
|
5
|
+
*/
|
|
6
|
+
export interface IZosmfChangePasswordResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the password change completed successfully.
|
|
9
|
+
* @type {boolean}
|
|
10
|
+
*/
|
|
11
|
+
success: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Identifies the category of errors (0 = success).
|
|
14
|
+
* @type {number}
|
|
15
|
+
*/
|
|
16
|
+
returnCode: number;
|
|
17
|
+
/**
|
|
18
|
+
* Identifies the specific error (0 = success).
|
|
19
|
+
* @type {number}
|
|
20
|
+
*/
|
|
21
|
+
reasonCode: number;
|
|
22
|
+
/**
|
|
23
|
+
* Describes the text information of the change request.
|
|
24
|
+
* @type {string}
|
|
25
|
+
*/
|
|
26
|
+
message: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=IZosmfChangePasswordResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IZosmfChangePasswordResponse.d.ts","sourceRoot":"","sources":["../../src/doc/IZosmfChangePasswordResponse.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This program and the accompanying materials are made available under the terms of the
|
|
4
|
+
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
|
|
5
|
+
* https://www.eclipse.org/legal/epl-v20.html
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright Contributors to the Zowe Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
//# sourceMappingURL=IZosmfChangePasswordResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IZosmfChangePasswordResponse.js","sourceRoot":"","sources":["../../src/doc/IZosmfChangePasswordResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ export * from "./constants/Zosmf.constants";
|
|
|
2
2
|
export * from "./constants/Zosmf.messages";
|
|
3
3
|
export * from "./constants/Zosmf.profile";
|
|
4
4
|
export * from "./doc/IDefinedSystem";
|
|
5
|
+
export * from "./doc/IZosmfChangePasswordResponse";
|
|
5
6
|
export * from "./doc/IZosmfInfoResponse";
|
|
6
7
|
export * from "./doc/IZosmfListDefinedSystemsResponse";
|
|
7
8
|
export * from "./doc/IZosmfPluginInfo";
|
|
9
|
+
export * from "./ChangePassword";
|
|
8
10
|
export * from "./CheckStatus";
|
|
9
11
|
export * from "./ListDefinedSystems";
|
|
10
12
|
export * from "./ZosmfBaseHandler";
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -28,9 +28,11 @@ __exportStar(require("./constants/Zosmf.constants"), exports);
|
|
|
28
28
|
__exportStar(require("./constants/Zosmf.messages"), exports);
|
|
29
29
|
__exportStar(require("./constants/Zosmf.profile"), exports);
|
|
30
30
|
__exportStar(require("./doc/IDefinedSystem"), exports);
|
|
31
|
+
__exportStar(require("./doc/IZosmfChangePasswordResponse"), exports);
|
|
31
32
|
__exportStar(require("./doc/IZosmfInfoResponse"), exports);
|
|
32
33
|
__exportStar(require("./doc/IZosmfListDefinedSystemsResponse"), exports);
|
|
33
34
|
__exportStar(require("./doc/IZosmfPluginInfo"), exports);
|
|
35
|
+
__exportStar(require("./ChangePassword"), exports);
|
|
34
36
|
__exportStar(require("./CheckStatus"), exports);
|
|
35
37
|
__exportStar(require("./ListDefinedSystems"), exports);
|
|
36
38
|
__exportStar(require("./ZosmfBaseHandler"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;;;;;AAEF,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAE1C,uDAAqC;AACrC,2DAAyC;AACzC,yEAAuD;AACvD,yDAAuC;AAEvC,gDAA8B;AAC9B,uDAAqC;AACrC,qDAAmC;AACnC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;;;;;AAEF,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAE1C,uDAAqC;AACrC,qEAAmD;AACnD,2DAAyC;AACzC,yEAAuD;AACvD,yDAAuC;AAEvC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,qDAAmC;AACnC,iDAA+B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zowe/zosmf-for-zowe-sdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.32.2",
|
|
4
4
|
"description": "Zowe SDK to interact with the z/OS Management Facility",
|
|
5
5
|
"author": "Zowe",
|
|
6
6
|
"license": "EPL-2.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"typedocSpecifySrc": "typedoc --options ./typedoc.json"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@zowe/cli-test-utils": "8.
|
|
47
|
-
"@zowe/core-for-zowe-sdk": "8.
|
|
48
|
-
"@zowe/imperative": "8.
|
|
46
|
+
"@zowe/cli-test-utils": "8.32.2",
|
|
47
|
+
"@zowe/core-for-zowe-sdk": "8.32.2",
|
|
48
|
+
"@zowe/imperative": "8.32.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@zowe/core-for-zowe-sdk": "^8.0.0",
|