@genesislcap/foundation-login 14.77.1 → 14.78.0-mfa-auth.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAKpE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,qBAKa,SAAU,SAAQ,SAAS;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,WAAW,EAAE,MAAM,CAAM;IACzB,UAAU,EAAE,OAAO,CAAS;IAElC,iBAAiB;IAejB,KAAK;IAeL,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAStD,OAAO,CAAC,yBAAyB;
|
|
1
|
+
{"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../../src/routes/login-form/login-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAKpE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,qBAKa,SAAU,SAAQ,SAAS;IAC1B,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,WAAW,EAAE,MAAM,CAAM;IACzB,UAAU,EAAE,OAAO,CAAS;IAElC,iBAAiB;IAejB,KAAK;IAeL,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAStD,OAAO,CAAC,yBAAyB;IAgDjC,OAAO,CAAC,iBAAiB;IAczB,iBAAiB;IAmBjB,IACI,eAAe,WAElB;IAED,cAAc,MAAO,WAAW,KAAG,IAAI,CAIrC;IAEF,UAAU;IAiBV,OAAO,CAAC,cAAc;IAQhB,YAAY;IAIZ,aAAa;IAOb,KAAK,CAAC,WAAW,EAAE,QAAQ;IAyCjC,IACI,iBAAiB,6BAEpB;IAED,IAAI,qBAAqB,YAExB;IAED,IAAI,cAAc,YAEjB;CACF"}
|
|
@@ -88,6 +88,22 @@ let LoginForm = class LoginForm extends BaseRoute {
|
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
const queryParams = new URLSearchParams(window.location.search);
|
|
92
|
+
const mfaToken = queryParams.get('MFA_CODE');
|
|
93
|
+
if (mfaToken) {
|
|
94
|
+
const mfaCredentials = cm.createMFACredentials({
|
|
95
|
+
/**
|
|
96
|
+
* I think `token` is better as it's system gen vs code a user entered
|
|
97
|
+
* TODO: Get server guys to update query param to MFA_TOKEN
|
|
98
|
+
*/
|
|
99
|
+
mfaToken,
|
|
100
|
+
});
|
|
101
|
+
if (cm.validateMFACredentials(mfaCredentials)) {
|
|
102
|
+
logger.debug(`Attempting to login with mfa credentials.`);
|
|
103
|
+
this.login(mfaCredentials);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
91
107
|
this.attemptBasicLogin();
|
|
92
108
|
}
|
|
93
109
|
});
|
|
@@ -192,6 +208,10 @@ let LoginForm = class LoginForm extends BaseRoute {
|
|
|
192
208
|
this.onNavigate(this.getSubRoutePath('reset-password?expired'));
|
|
193
209
|
return;
|
|
194
210
|
}
|
|
211
|
+
if (err.hasMFAError()) {
|
|
212
|
+
this.setError('Please check your inbox for your login link.');
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
195
215
|
if (this.config.fields.organisation &&
|
|
196
216
|
this.config.fields.organisation.required !== false &&
|
|
197
217
|
!this.organisation.length) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-login",
|
|
3
3
|
"description": "Genesis Foundation Login",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.78.0-mfa-auth.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-login.d.ts",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"test:debug": "genx test --debug"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@genesislcap/foundation-testing": "14.
|
|
53
|
-
"@genesislcap/genx": "14.
|
|
52
|
+
"@genesislcap/foundation-testing": "14.78.0-mfa-auth.1",
|
|
53
|
+
"@genesislcap/genx": "14.78.0-mfa-auth.1",
|
|
54
54
|
"rimraf": "^3.0.2"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@genesislcap/foundation-comms": "14.
|
|
58
|
-
"@genesislcap/foundation-ui": "14.
|
|
59
|
-
"@genesislcap/foundation-utils": "14.
|
|
60
|
-
"@genesislcap/foundation-zero": "14.
|
|
57
|
+
"@genesislcap/foundation-comms": "14.78.0-mfa-auth.1",
|
|
58
|
+
"@genesislcap/foundation-ui": "14.78.0-mfa-auth.1",
|
|
59
|
+
"@genesislcap/foundation-utils": "14.78.0-mfa-auth.1",
|
|
60
|
+
"@genesislcap/foundation-zero": "14.78.0-mfa-auth.1",
|
|
61
61
|
"@microsoft/fast-components": "^2.21.3",
|
|
62
62
|
"@microsoft/fast-element": "^1.7.0",
|
|
63
63
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"customElements": "dist/custom-elements.json",
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "b995bf31c81b491d6efa5ad8e476698704838474"
|
|
78
78
|
}
|