Skip to content

Commit d20d08b

Browse files
poc
1 parent 68b45d9 commit d20d08b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/v2/controllers/FormController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default Controller.extend({
175175
}
176176

177177
// Build options to invoke or throw error for invalid action
178-
if (FORMS.LAUNCH_AUTHENTICATOR === actionPath && actionParams) {
178+
if ((FORMS.LAUNCH_AUTHENTICATOR === actionPath || FORMS.CHALLENGE_AUTHENTICATOR === actionPath ) && actionParams) {
179179
//https://oktainc.atlassian.net/browse/OKTA-562885 a temp solution to send rememberMe when click the launch OV buttion.
180180
//will redesign to handle FastPass silent probing case where no username and rememberMe opiton at all.
181181
invokeOptions = {

src/v2/view-builder/views/IdentifierView.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,18 +334,19 @@ export default BaseView.extend({
334334
signatureData: CryptoUtil.binToStr(assertion.response.signature)
335335
};
336336

337-
//this.options.appState.trigger('invokeAction', FORMS.LAUNCH_WEBAUTHN_AUTHENTICATOR);
338-
const hasUserHandleSchema = this.options.appState.getSchemaByName('credentials.userHandle');
339-
if (hasUserHandleSchema) {
337+
//this.options.appState.trigger('invokeAction', RemediationForms.LAUNCH_WEBAUTHN_AUTHENTICATOR);
338+
//const hasUserHandleSchema = this.options.appState.getSchemaByName('credentials.userHandle');
339+
//if (hasUserHandleSchema) {
340340
_.extend(credentials, {
341341
userHandle: CryptoUtil.binToStr(assertion.response.userHandle ?? '')
342342
});
343-
}
343+
//}
344344

345345
//this.model.set({
346346
// credentials
347347
//});
348348
//this.saveForm(this.model);
349+
this.options.appState.trigger('invokeAction', RemediationForms.CHALLENGE_AUTHENTICATOR, {'credentials': credentials});
349350
}, (error) => {
350351
// Do not display if it is abort error triggered by code when switching.
351352
// this.webauthnAbortController would be null if abort was triggered by code.

0 commit comments

Comments
 (0)