-
Notifications
You must be signed in to change notification settings - Fork 166
LG-11085 delete idv doc auth session (remote flow_session) #9282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4c7ae7e
a9b708a
28d0621
1f2a52f
3c820c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,6 @@ def cancel_session | |
| idv_session = user_session[:idv] | ||
| idv_session&.clear | ||
| user_session['idv/in_person'] = {} | ||
| reset_doc_auth | ||
| end | ||
| end | ||
|
|
||
|
|
@@ -83,11 +82,6 @@ def location_params | |
| params.permit(:step, :location).to_h.symbolize_keys | ||
| end | ||
|
|
||
| def reset_doc_auth | ||
| user_session.delete('idv/doc_auth') | ||
| user_session['idv'] = {} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We cleared idv_session above in |
||
| end | ||
|
|
||
| def cancel_document_capture_session | ||
| document_capture_session&.update(cancelled_at: Time.zone.now) | ||
| end | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,11 +19,10 @@ class SensitiveValueError < StandardError; end | |
| COMPRESSED_KEY = 'c' | ||
| VERSION_KEY = 'v' | ||
|
|
||
| # 'idv/doc_auth' and 'idv' are used during the proofing process and can contain PII | ||
| # 'idv/in_person' and 'idv' are used during the proofing process and can contain PII | ||
| # personal keys are generated and stored in the session between requests, but are used | ||
| # to decrypt PII bundles, so we treat them similarly to the PII itself. | ||
| SENSITIVE_PATHS = [ | ||
| ['warden.user.user.session', 'idv/doc_auth'], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be find since we are no longer writing anything to this path, much less PII.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment above this mentions idv/doc_auth and should probably be updated |
||
| ['warden.user.user.session', 'idv/in_person'], | ||
| ['warden.user.user.session', 'idv'], | ||
| ['warden.user.user.session', 'personal_key'], | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this method be merged with
SessionsController#clear_session? (But not in this PR)