Skip to content

Commit d255129

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Updated package references and added Test Token to the admin page.
1 parent 6671fc4 commit d255129

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

src/DfE.ExternalApplications.Domain/DfE.ExternalApplications.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.29" />
10+
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.34" />
1111
</ItemGroup>
1212

1313
</Project>

src/DfE.ExternalApplications.Infrastructure/DfE.ExternalApplications.Infrastructure.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<ItemGroup>
1010
<PackageReference Include="DfE.CoreLibs.Caching" Version="1.0.10" />
11-
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.29" />
12-
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.9" />
11+
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.34" />
12+
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.10" />
1313
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.3.0" />
1414
</ItemGroup>
1515

src/DfE.ExternalApplications.Web/DfE.ExternalApplications.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="DfE.CoreLibs.Caching" Version="1.0.10" />
12-
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.9" />
12+
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.10" />
1313
<PackageReference Include="GovUk.Frontend.AspNetCore" Version="3.2.2" />
1414
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1515
<PackageReference Include="DfE.CoreLibs.Security" Version="1.1.13" />

src/DfE.ExternalApplications.Web/Pages/Admin/Admin.cshtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@
109109
<code class="govuk-body govuk-!-font-size-14">@Model.GetSessionKeysInfo()</code>
110110
</dd>
111111
</div>
112+
<div class="govuk-summary-list__row">
113+
<dt class="govuk-summary-list__key">Test Token</dt>
114+
<dd class="govuk-summary-list__value">
115+
<code class="govuk-body govuk-!-font-size-14">@Model.TestToken</code>
116+
</dd>
117+
</div>
112118
</dl>
113119
</div>
114120
</div>

src/DfE.ExternalApplications.Web/Pages/Admin/Admin.cshtml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using DfE.ExternalApplications.Domain.Models;
55
using GovUK.Dfe.ExternalApplications.Api.Client.Contracts;
66
using Microsoft.AspNetCore.Authorization;
7+
using Microsoft.AspNetCore.Http;
78
using Microsoft.AspNetCore.Mvc;
89
using Microsoft.AspNetCore.Mvc.RazorPages;
910
using System.Diagnostics.CodeAnalysis;
@@ -25,6 +26,7 @@ public class AdminModel : PageModel
2526
public string? ErrorMessage { get; set; }
2627
public bool ShowSuccess { get; set; }
2728
public string? SuccessMessage { get; set; }
29+
public string? TestToken { get; set; }
2830

2931
private readonly IFormTemplateProvider _templateProvider;
3032
private readonly ITemplatesClient _templatesClient;
@@ -88,6 +90,9 @@ private async Task LoadTemplateInformationAsync(bool afterSessionClear = false)
8890
{
8991
try
9092
{
93+
// retrieve the test token
94+
TestToken = HttpContext.Session.GetString("TestAuth:Token");
95+
9196
TemplateId = HttpContext.Session.GetString("TemplateId");
9297

9398
if (afterSessionClear)

0 commit comments

Comments
 (0)