LG-11695 enforce selfie capture performed#9846
Conversation
Co-authored-by: Alex Bradley <alexander.bradley@gsa.gov>
…unsupervised_with_selfie
This will only take effect if doc_auth_selfie_capture_enabled feature flag is on
To get rid of: Failure/Error: raise BrowserConsoleLogError.new(javascript_errors) if javascript_errors.present?
BrowserConsoleLogError:
Unexpected browser console logging:
chrome-error://chromewebdata/ 6589:1640 "crbug/1173575, non-JS module files deprecated."
|
|
||
| before_action :confirm_two_factor_authenticated | ||
| before_action :verify_confirmed, if: :ial2? | ||
| before_action :confirm_identity_verified, if: :ial2? |
There was a problem hiding this comment.
I am not sure the completions controller is the correct place for this logic. The completions controller is not what is responsible for redirecting the user to the service provider or checking that the user has satisfied all of the requirements for being redirected. That is the OpenidConnect::AuthorizationController#index and the SamlIdpController#auth action.
There was a problem hiding this comment.
The before_action on line 6 was already there. I just renamed it. Do you recommend removing that, or leaving it alone, or adding the before_action here and also modifying the places you mentioned?
There was a problem hiding this comment.
I looked at the latest changes and I think it is probably fine to leave those checks in here. They are shortcutting the effect that an eventual redirect to the authorization controller or SAML IdP controller would have.
We're going to look into fixing this a different way for local test runs. This reverts commit 3b62b21.
🎫 Ticket
LG-11695
🛠 Summary of changes
This is Part 1 of several PRs for this ticket, and addresses AC1: If an SP requests a selfie check and the user has not performed a selfie check, we send the user back to the start of proofing before re-directing to the SP (edge case)
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
doc_auth_selfie_capture_enabled: truedoc_auth_selfie_capture_enabled: false