Skip to content
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

[VI-740] SSOe: add MHV account creation after login #19450

Merged
merged 1 commit into from
Nov 20, 2024
Merged

[VI-740] SSOe: add MHV account creation after login #19450

merged 1 commit into from
Nov 20, 2024

Conversation

rileyanderson
Copy link
Contributor

@rileyanderson rileyanderson commented Nov 13, 2024

Summary

  • Skip ssoe after_login MHV account creation for specific clients
  • Add skip_mhv_creation_api parameter to ToU redirect for specific clients that frontend will pass back when accepting ToU

Related issue(s)

Testing done

checkout vi-740 on vets website

  • Test logging in with SSOe
  • Test accepting ToU
    • with SKIP_MHV_ACCOUNT_CREATION_CLIENTS set to [vaweb]
      • it should not enqueue a job

What areas of the site does it impact?

ToU, MHV Account Creation,

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected

emilykim13
emilykim13 previously approved these changes Nov 14, 2024
Copy link
Contributor

@emilykim13 emilykim13 left a comment

Choose a reason for hiding this comment

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

I checked out vi-740 for both vets-api and vets-website. I made the changes you stated in the testing instructions. I checked sidekiq jobs queue and jobs did not enqueue upon sign in or upon accepting ToU. Lgtm

@rmtolmach
Copy link
Contributor

@ me if the check-approval-requirements check is still pending after it's been approved by identity.

Copy link

1 Warning
⚠️ This PR changes 231 LoC (not counting whitespace/newlines).

In order to ensure each PR receives the proper attention it deserves, we recommend not exceeding
200. Expect some delays getting reviews.

File Summary

Files

  • app/controllers/v0/terms_of_use_agreements_controller.rb (+11/-2)

  • app/controllers/v1/sessions_controller.rb (+2/-1)

  • app/services/login/after_login_actions.rb (+8/-2)

  • lib/saml/post_url_service.rb (+9/-4)

  • lib/saml/url_service.rb (+1/-0)

  • spec/controllers/v0/terms_of_use_agreements_controller_spec.rb (+37/-2)

  • spec/controllers/v1/sessions_controller_spec.rb (+24/-8)

  • spec/lib/saml/post_url_service_spec.rb (+28/-42)

  • spec/services/login/after_login_actions_spec.rb (+36/-14)

    Note: We exclude files matching the following when considering PR size:

    *.csv, *.json, *.tsv, *.txt, *.md, Gemfile.lock, app/swagger, modules/mobile/docs, spec/fixtures/, spec/support/vcr_cassettes/, modules/mobile/spec/support/vcr_cassettes/, db/seeds, modules/vaos/app/docs, modules/meb_api/app/docs, modules/appeals_api/app/swagger/, *.bru, *.pdf
    

Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

@bosawt bosawt self-requested a review November 19, 2024 22:55
@bosawt
Copy link
Contributor

bosawt commented Nov 19, 2024

@rmtolmach Good to go now

Copy link

Backend-review-group approval confirmed.

@bosawt bosawt merged commit d52b3f5 into master Nov 20, 2024
26 checks passed
@bosawt bosawt deleted the vi-740 branch November 20, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants