Skip to content

LG-6803: Revise SP context requirement to configuration#6567

Merged
aduth merged 2 commits intomainfrom
aduth-idv-sp-required-config
Jul 11, 2022
Merged

LG-6803: Revise SP context requirement to configuration#6567
aduth merged 2 commits intomainfrom
aduth-idv-sp-required-config

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Jul 8, 2022

Why:

  • It is more conventional to use configuration values for environment-specific behavior changes
  • Allows more fine-tune control in specific environments, rather than applying to all production-like environments
  • The logic is simpler to follow
  • It is easier to test locally, which is not an in-datacenter environment
  • It may complement upcoming work in LG-6439 for per-SP IPP access

Testing Instructions:

  1. Navigate to http://localhost:3000
  2. Sign in
  3. Navigate to http://localhost:3000/verify
  4. Observe the "Welcome" step of the identity proofing flow
  5. Edit config/application.yml and add idv_sp_required: true to the top-most YAML scope
  6. Restart the running server process
  7. Navigate to http://localhost:3000/verify
  8. Observe that you're redirected to the account page

**Why**:

- It is more conventional to use configuration values for environment-specific behavior changes
- Allows more fine-tune control in specific environments, rather than applying to all production-like environments
- The logic is simpler to follow
- It is easier to test locally, which is not an in-datacenter environment
- It may complement upcoming work in LG-6439 for per-SP IPP access
@aduth aduth requested a review from a team July 8, 2022 18:39
[skip changelog]
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit 5a5e738 into main Jul 11, 2022
@aduth aduth deleted the aduth-idv-sp-required-config branch July 11, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants