Skip to content

Commit

Permalink
poc
Browse files Browse the repository at this point in the history
  • Loading branch information
xifengfang-okta committed Apr 19, 2024
1 parent 68b45d9 commit d20d08b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/v2/controllers/FormController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default Controller.extend({
}

// Build options to invoke or throw error for invalid action
if (FORMS.LAUNCH_AUTHENTICATOR === actionPath && actionParams) {
if ((FORMS.LAUNCH_AUTHENTICATOR === actionPath || FORMS.CHALLENGE_AUTHENTICATOR === actionPath ) && actionParams) {
//https://oktainc.atlassian.net/browse/OKTA-562885 a temp solution to send rememberMe when click the launch OV buttion.
//will redesign to handle FastPass silent probing case where no username and rememberMe opiton at all.
invokeOptions = {
Expand Down
9 changes: 5 additions & 4 deletions src/v2/view-builder/views/IdentifierView.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,18 +334,19 @@ export default BaseView.extend({
signatureData: CryptoUtil.binToStr(assertion.response.signature)
};

//this.options.appState.trigger('invokeAction', FORMS.LAUNCH_WEBAUTHN_AUTHENTICATOR);
const hasUserHandleSchema = this.options.appState.getSchemaByName('credentials.userHandle');
if (hasUserHandleSchema) {
//this.options.appState.trigger('invokeAction', RemediationForms.LAUNCH_WEBAUTHN_AUTHENTICATOR);
//const hasUserHandleSchema = this.options.appState.getSchemaByName('credentials.userHandle');
//if (hasUserHandleSchema) {
_.extend(credentials, {
userHandle: CryptoUtil.binToStr(assertion.response.userHandle ?? '')
});
}
//}

//this.model.set({
// credentials
//});
//this.saveForm(this.model);
this.options.appState.trigger('invokeAction', RemediationForms.CHALLENGE_AUTHENTICATOR, {'credentials': credentials});
}, (error) => {
// Do not display if it is abort error triggered by code when switching.
// this.webauthnAbortController would be null if abort was triggered by code.
Expand Down

0 comments on commit d20d08b

Please sign in to comment.