-
Notifications
You must be signed in to change notification settings - Fork 16
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 #3106 from DFE-Digital/one-login-fe-failure
[LUPEYALPHA-869] [LUPEYALPHA-870] One login FE failure
- Loading branch information
Showing
5 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
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,23 @@ | ||
class OneLogin::FailureHandler | ||
attr_reader :message, :origin, :answers | ||
|
||
def initialize(message:, origin:, answers:) | ||
@message = message | ||
@origin = origin | ||
@answers = answers | ||
end | ||
|
||
def template | ||
if !answers.logged_in_with_onelogin | ||
"#{journey::VIEW_PATH}_auth_failure" | ||
elsif answers.logged_in_with_onelogin | ||
"#{journey::VIEW_PATH}_idv_failure" | ||
end | ||
end | ||
|
||
private | ||
|
||
def journey | ||
Journeys::FurtherEducationPayments | ||
end | ||
end |
21 changes: 21 additions & 0 deletions
21
app/views/omniauth_callbacks/further_education_payments_auth_failure.html.erb
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,21 @@ | ||
<% content_for(:page_title, page_title("Sorry, there is a problem with the service", journey: current_journey_routing_name, show_error: false)) %> | ||
|
||
<% @backlink_path = claim_path(journey: current_journey_routing_name, slug: "sign-in") %> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l"> | ||
Sorry, there is a problem with the service | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
Try again later. | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
Email <%= govuk_link_to "[email protected]", "mailto:[email protected]" %> if you need help. | ||
</p> | ||
|
||
<%= govuk_button_link_to "Try again", claim_path(journey: current_journey_routing_name, slug: "sign-in") %> | ||
</div> | ||
</div> |
19 changes: 19 additions & 0 deletions
19
app/views/omniauth_callbacks/further_education_payments_idv_failure.html.erb
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,19 @@ | ||
<% content_for(:page_title, page_title("We cannot progress your application", journey: current_journey_routing_name, show_error: false)) %> | ||
|
||
<% @backlink_path = claim_path(journey: current_journey_routing_name, slug: "sign-in") %> | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l"> | ||
We cannot progress your application | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
You need to be able to prove your identity in GOV.UK One Login to continue your application. You can find more information about <%= govuk_link_to "proving your identity", "https://www.gov.uk/using-your-gov-uk-one-login" %> on GOV.UK. | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
If you have any queries about the application process, contact us at <%= govuk_link_to t("further_education_payments.support_email_address"), "mailto:#{t("further_education_payments.support_email_address")}" %>. | ||
</p> | ||
</div> | ||
</div> |
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