@genesislcap/foundation-comms 14.155.0-axes.1 → 14.155.0-axes.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/auth/auth.d.ts.map +1 -1
- package/dist/esm/auth/auth.js +13 -15
- package/dist/esm/auth/auth.types.js +1 -1
- package/package.json +11 -11
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/auth/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAGL,cAAc,EAIf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAa,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,WAAW,CAAC;IAEvC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;IAE3B;;;;;;OAMG;IACH,KAAK,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEnD;;;;;OAKG;IACH,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAEhC;;;;;OAKG;IACH,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACvC;AAED;;;GAGG;AACH,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uth = class DefaultAuth {
|
|
41
41
|
try {
|
42
42
|
const loginMessage = this.messageBuilder.createLoginMessage(credentials);
|
43
43
|
const authResult = yield this.connect.send(loginMessage);
|
44
|
-
if (authResult && authResult.REFRESH_AUTH_TOKEN) {
|
45
|
-
this.applyAuthResults({
|
46
|
-
authToken: authResult.SESSION_AUTH_TOKEN,
|
47
|
-
refreshToken: authResult.REFRESH_AUTH_TOKEN,
|
48
|
-
profiles: authResult.PROFILE,
|
49
|
-
username: authResult.USER_NAME,
|
50
|
-
permissions: authResult.PERMISSION,
|
51
|
-
sessionId: authResult.SESSION_ID,
|
52
|
-
});
|
53
|
-
/**
|
54
|
-
* Use the credentialManager as a proxy instead?
|
55
|
-
*/
|
56
|
-
this.session.setAuthResult(authResult);
|
57
|
-
logger.debug('Login Authentication Result:', authResult);
|
58
|
-
}
|
59
44
|
if (!authResult || authResult.ERROR || ((_a = authResult.DETAILS) === null || _a === void 0 ? void 0 : _a.ERROR)) {
|
60
45
|
throw new AuthError(loginMessage, authResult);
|
61
46
|
}
|
47
|
+
this.applyAuthResults({
|
48
|
+
authToken: authResult.SESSION_AUTH_TOKEN,
|
49
|
+
refreshToken: authResult.REFRESH_AUTH_TOKEN,
|
50
|
+
profiles: authResult.PROFILE,
|
51
|
+
username: authResult.USER_NAME,
|
52
|
+
permissions: authResult.PERMISSION,
|
53
|
+
sessionId: authResult.SESSION_ID,
|
54
|
+
});
|
55
|
+
/**
|
56
|
+
* Use the credentialManager as a proxy instead?
|
57
|
+
*/
|
58
|
+
this.session.setAuthResult(authResult);
|
59
|
+
logger.debug('Login Authentication Result:', authResult);
|
62
60
|
}
|
63
61
|
catch (err) {
|
64
62
|
logger.error('Login Authentication Error:', err);
|
@@ -42,7 +42,7 @@ export class AuthError extends Error {
|
|
42
42
|
return this.hasErrorCode('PASSWORD_EXPIRED');
|
43
43
|
}
|
44
44
|
hasMFAError() {
|
45
|
-
return this.hasErrorCode('MFA_REQUIRED');
|
45
|
+
return this.hasErrorCode('MFA_REQUIRED') || this.hasErrorCode('MFA_FAILED');
|
46
46
|
}
|
47
47
|
hasErrorCode(code) {
|
48
48
|
var _a, _b;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@genesislcap/foundation-comms",
|
3
3
|
"description": "Genesis Foundation UI Comms",
|
4
|
-
"version": "14.155.0-axes.
|
4
|
+
"version": "14.155.0-axes.2",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -59,13 +59,13 @@
|
|
59
59
|
"test:debug": "genx test --debug"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
|
-
"@genesislcap/foundation-testing": "14.155.0-axes.
|
63
|
-
"@genesislcap/genx": "14.155.0-axes.
|
64
|
-
"@genesislcap/rollup-builder": "14.155.0-axes.
|
65
|
-
"@genesislcap/ts-builder": "14.155.0-axes.
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.155.0-axes.
|
67
|
-
"@genesislcap/vite-builder": "14.155.0-axes.
|
68
|
-
"@genesislcap/webpack-builder": "14.155.0-axes.
|
62
|
+
"@genesislcap/foundation-testing": "14.155.0-axes.2",
|
63
|
+
"@genesislcap/genx": "14.155.0-axes.2",
|
64
|
+
"@genesislcap/rollup-builder": "14.155.0-axes.2",
|
65
|
+
"@genesislcap/ts-builder": "14.155.0-axes.2",
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.155.0-axes.2",
|
67
|
+
"@genesislcap/vite-builder": "14.155.0-axes.2",
|
68
|
+
"@genesislcap/webpack-builder": "14.155.0-axes.2",
|
69
69
|
"@types/js-cookie": "^3.0.2",
|
70
70
|
"@types/json-schema": "^7.0.11",
|
71
71
|
"@types/webappsec-credential-management": "^0.6.2",
|
@@ -73,8 +73,8 @@
|
|
73
73
|
},
|
74
74
|
"dependencies": {
|
75
75
|
"@finos/fdc3": "^1.2.0",
|
76
|
-
"@genesislcap/foundation-logger": "14.155.0-axes.
|
77
|
-
"@genesislcap/foundation-utils": "14.155.0-axes.
|
76
|
+
"@genesislcap/foundation-logger": "14.155.0-axes.2",
|
77
|
+
"@genesislcap/foundation-utils": "14.155.0-axes.2",
|
78
78
|
"@microsoft/fast-element": "^1.12.0",
|
79
79
|
"@microsoft/fast-foundation": "^2.49.4",
|
80
80
|
"analytics": "^0.8.0",
|
@@ -91,5 +91,5 @@
|
|
91
91
|
"publishConfig": {
|
92
92
|
"access": "public"
|
93
93
|
},
|
94
|
-
"gitHead": "
|
94
|
+
"gitHead": "0f796e644f9ed22937892a0cef4cb0d36dd44257"
|
95
95
|
}
|