-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11614 from 18F/stages/rc-2024-12-10
Deploy RC 437 to Production
- Loading branch information
Showing
73 changed files
with
1,696 additions
and
180 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# frozen_string_literal: true | ||
|
||
module Idv | ||
module ByMail | ||
class SpFollowUpController < ApplicationController | ||
include Idv::AvailabilityConcern | ||
|
||
before_action :confirm_two_factor_authenticated | ||
before_action :confirm_needs_sp_follow_up | ||
|
||
def new | ||
analytics.track_event(:idv_by_mail_sp_follow_up_visited, **analytics_params) | ||
@presenter = Idv::ByMail::SpFollowUpPresenter.new(current_user:) | ||
end | ||
|
||
def show | ||
analytics.track_event(:idv_by_mail_sp_follow_up_submitted, **analytics_params) | ||
|
||
sp_return_url_resolver = SpReturnUrlResolver.new( | ||
service_provider: current_user.active_profile.initiating_service_provider, | ||
) | ||
redirect_url = sp_return_url_resolver.post_idv_follow_up_url || | ||
sp_return_url_resolver.return_to_sp_url | ||
redirect_to(redirect_url, allow_other_host: true) | ||
end | ||
|
||
def cancel | ||
analytics.track_event(:idv_by_mail_sp_follow_up_cancelled, **analytics_params) | ||
redirect_to account_url | ||
end | ||
|
||
private | ||
|
||
def analytics_params | ||
initiating_service_provider = current_user.active_profile.initiating_service_provider | ||
{ | ||
initiating_service_provider: initiating_service_provider.issuer, | ||
} | ||
end | ||
|
||
def confirm_needs_sp_follow_up | ||
return if current_user.identity_verified? && | ||
current_user.active_profile.initiating_service_provider.present? && | ||
!current_sp.present? | ||
redirect_to account_url | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.