@pega/dx-component-builder-sdk 8.23.10 → 8.23.11
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/package.json
CHANGED
package/src/auth.js
CHANGED
|
@@ -58,8 +58,8 @@ class PegaAuth {
|
|
|
58
58
|
|
|
59
59
|
// For PKCE the authorize includes a code_challenge & code_challenge_method as well
|
|
60
60
|
async #buildAuthorizeUrl(state) {
|
|
61
|
-
const { serverType, clientId, redirectUri, authorizeUri, authService, sessionIndex, appAlias,
|
|
62
|
-
this.config;
|
|
61
|
+
const { serverType, clientId, redirectUri, authorizeUri, authService, sessionIndex, appAlias,
|
|
62
|
+
userIdentifier, password, noPKCE, isolationId } = this.config;
|
|
63
63
|
|
|
64
64
|
if (!noPKCE) {
|
|
65
65
|
// Generate random string of 64 chars for verifier. RFC 7636 says from 43-128 chars
|
|
@@ -93,7 +93,7 @@ class PegaAuth {
|
|
|
93
93
|
(sessionIndex && this.config.sessionIndexAttempts < 3 ? `&session_index=${sessionIndex}` : '') +
|
|
94
94
|
(userIdentifier
|
|
95
95
|
? `&UserIdentifier=${encodeURIComponent(userIdentifier)}${password ? `&Password=${encodeURIComponent(this.#atob(password))}` : ''}` : '')
|
|
96
|
-
:
|
|
96
|
+
: `&isolationID=${isolationId}`);
|
|
97
97
|
|
|
98
98
|
let pkceArgs = '';
|
|
99
99
|
if (!noPKCE) {
|
|
@@ -282,7 +282,7 @@ export const validateCompile = async (
|
|
|
282
282
|
|
|
283
283
|
const templateDir = `${templateParentDir}/${typeLC}/${sSubType}`;
|
|
284
284
|
let templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
|
|
285
|
-
templateDirectory = templateDirectory.replace("
|
|
285
|
+
templateDirectory = templateDirectory.replace( path.sep + "create-all", path.sep + "create");
|
|
286
286
|
|
|
287
287
|
const templateDirConstellation = `./templates/Constellation/${typeLC}/${sSubType}`;
|
|
288
288
|
let templateDirectoryConstellation = fileURLToPath(new URL(templateDirConstellation, import.meta.url));
|