-
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.
In review apps we can't use DfE sign in as the urls are generic and so are not registered with DfE sign in. This commit providers a form to allow testers to set the DfE sign in payload to check various sign in scenarios.
- Loading branch information
Showing
5 changed files
with
138 additions
and
34 deletions.
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
80 changes: 80 additions & 0 deletions
80
app/views/further_education_payments/provider/claims/_dfe_sign_in_bypass_form.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,80 @@ | ||
<h2 class="govuk-heading-m"> | ||
Set DfE sign in payload details | ||
</h2> | ||
|
||
<p class="govuk-body"> | ||
In environments where DfE Sign-in is not enabled you can use this form to | ||
set payload parameters to test different DfE Sign-in scenarios. | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
By default this form is set to grant access to verify the claim. | ||
</p> | ||
|
||
<%= form_with( | ||
url: "/further-education-payments-provider/auth/callback", | ||
method: :get, | ||
builder: GOVUKDesignSystemFormBuilder::FormBuilder | ||
) do |f| %> | ||
<%= f.govuk_text_field( | ||
"[extra][raw_info][organisation][ukprn]", | ||
label: { text: "UKPRN" }, | ||
value: journey_session.answers.claim.school.ukprn | ||
) %> | ||
|
||
<%= f.govuk_text_field( | ||
"[extra][raw_info][organisation][id]", | ||
label: { text: "Organisation id" }, | ||
value: "12345678" | ||
) %> | ||
|
||
<%= f.govuk_text_field( | ||
"uid", | ||
label: { text: "DfE sign in UID" }, | ||
value: "12345678" | ||
) %> | ||
|
||
<%= f.govuk_text_field( | ||
"[info][first_name]", | ||
label: { text: "First name" }, | ||
value: "Seymoure" | ||
) %> | ||
|
||
<%= f.govuk_text_field( | ||
"[info][last_name]", | ||
label: { text: "Last name" }, | ||
value: "Skinner" | ||
) %> | ||
|
||
<%= f.govuk_text_field( | ||
"[info][email]", | ||
label: { text: "Email" }, | ||
value: "[email protected]" | ||
) %> | ||
|
||
<%= f.govuk_text_field( | ||
"[roles][0]", | ||
label: { text: "Role 1" }, | ||
value: Journeys::FurtherEducationPayments::Provider::CLAIM_VERIFIER_DFE_SIGN_IN_ROLE_CODE | ||
) %> | ||
|
||
<%= f.govuk_text_field("[roles][1]", label: { text: "Role 2" }) %> | ||
|
||
<%= f.govuk_text_field("[roles][2]", label: { text: "Role 3" }) %> | ||
|
||
<%= f.govuk_check_box( | ||
"service_access", | ||
true, | ||
false, | ||
label: { text: "Claim service access"}, | ||
multiple: false, | ||
checked: true | ||
) %> | ||
|
||
<%= f.submit(class: "govuk-button govuk-button--start") do %> | ||
Start now | ||
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false"> | ||
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" /> | ||
</svg> | ||
<% 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