Skip to content

LG-7602 Pull VA IP Data and Store It In Session (Controller and Flow State) 3 of 3#7022

Merged
gangelo merged 6 commits intomainfrom
lg-7602-pull-va-ip-data-and-store-it-in-session-controller-and-flow-state
Sep 23, 2022
Merged

LG-7602 Pull VA IP Data and Store It In Session (Controller and Flow State) 3 of 3#7022
gangelo merged 6 commits intomainfrom
lg-7602-pull-va-ip-data-and-store-it-in-session-controller-and-flow-state

Conversation

@gangelo
Copy link
Contributor

@gangelo gangelo commented Sep 23, 2022

ATTENTION: This branch is blocked/will fail until this PR is approved/merged

https://cm-jira.usa.gov/browse/LG-7602

3 of 3.

This is a supporting change for the LG-7602 feature for Inherited Proofing (IP).

The user's PII needs to be obtained from the Service Provider in our Inherited
Proofing process Flow Steps so that we can process the data and put it into session in such a way so that we can hand the rest of the proofing process to the current IDV workflow in a seamless manner.

These changes ensure we can do the following in both our IP controller and/or IP Flow Steps:

  1. Know if we are entertaining an Inherited Proofing (IP) request.
  2. Identify the Service Provider (SP) making the IP request.
  3. Determine the correct SP-specific Service to call in order to get the user PII and the SP-specific FormResponse class needed to consume the aforementioned SP Service API response for user PII.

@gangelo gangelo added the inherited proofing Pull Requests for the Inherited Proofing feature label Sep 23, 2022
@gangelo gangelo self-assigned this Sep 23, 2022
@gangelo gangelo force-pushed the lg-7602-pull-va-ip-data-and-store-it-in-session-controller-and-flow-state branch 2 times, most recently from 06a90b6 to bcd141b Compare September 23, 2022 09:36
Specifically, obtaining user PII from the service provider and flow
state support, including session massaging in preparation for
IDV unattended work fllow.

changelog: Upcoming Features, Inherited Proofing, Pull VA IP Data and Store It In Session (LG-7602)
This sets up session for the subsequent Inherited Proofing (IP)
work flow/flow steps.
In order to proof our Inherited Proofing user:

NOTE: the use of InheritedProofingConcern #inherited_proofing_service,
members via its inclusion in the InheritedProofingController.

Add delegations needed for conveinient access to controller and idv_session
from InheritedProofingBaseStep so that we have these in any Flow Step
we need them.
@gangelo gangelo force-pushed the lg-7602-pull-va-ip-data-and-store-it-in-session-controller-and-flow-state branch 4 times, most recently from 7638e2c to 6737bf8 Compare September 23, 2022 16:49
This mixin provides a simple means to store user pii into the
flow_session[:pii_from_user] and manage idv_session session data
in preparation for IDV workflow handoff.
To session. Consume previously added UserPiiManagable mixin and
1) Save the user pii to session in the #call method
2) Return the FormResponse from the Service Provider API call to
obtain user pii, so that it can be processed by the base class
e.g. merged in with the Flow Step Form FormResponse and passed
to analytics properly/perform error handling..
The Inherited Proofing (IP) flow steps now need current_user to be populated
as would be the case in a real-life scenario as the user would have
created an account and logged in before being redirected to the IP work flow.
This change sets up current_user to create a real-live scenario.

Specs also test to make sure flow steps are working regardless of the
IdentityConfig.store.va_inherited_proofing_mock_enabled setting, although
this may be sufficiently covered by the
spec/controllers/concerns/inherited_proofing_concern_spec.rb specs.
@gangelo gangelo force-pushed the lg-7602-pull-va-ip-data-and-store-it-in-session-controller-and-flow-state branch from 6737bf8 to 412b32b Compare September 23, 2022 17:26
@gangelo gangelo marked this pull request as ready for review September 23, 2022 17:26
@gangelo gangelo merged commit 4b6ebbc into main Sep 23, 2022
@gangelo gangelo deleted the lg-7602-pull-va-ip-data-and-store-it-in-session-controller-and-flow-state branch September 23, 2022 18:06
@solipet solipet mentioned this pull request Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inherited proofing Pull Requests for the Inherited Proofing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants