Skip to content

Commit 939426a

Browse files
authored
Merge pull request #1027 from hargata/Hargata/reminder.param
Update Dependencies
2 parents c3c9ed2 + ba621a7 commit 939426a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

CarCareTracker.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="CsvHelper" Version="33.0.1" />
14+
<PackageReference Include="CsvHelper" Version="33.1.0" />
1515
<PackageReference Include="LiteDB" Version="5.0.17" />
16-
<PackageReference Include="MailKit" Version="4.11.0" />
16+
<PackageReference Include="MailKit" Version="4.13.0" />
17+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.14.0" />
1718
<PackageReference Include="Npgsql" Version="9.0.3" />
18-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" />
1919
</ItemGroup>
2020

2121
</Project>

Controllers/LoginController.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.AspNetCore.Authorization;
55
using Microsoft.AspNetCore.DataProtection;
66
using Microsoft.AspNetCore.Mvc;
7-
using System.IdentityModel.Tokens.Jwt;
7+
using Microsoft.IdentityModel.JsonWebTokens;
88
using System.Text.Json;
99

1010
namespace CarCareTracker.Controllers
@@ -146,8 +146,8 @@ public async Task<IActionResult> RemoteAuth(string code, string state = "")
146146
if (!string.IsNullOrWhiteSpace(userJwt))
147147
{
148148
//validate JWT token
149-
var tokenParser = new JwtSecurityTokenHandler();
150-
var parsedToken = tokenParser.ReadJwtToken(userJwt);
149+
var tokenParser = new JsonWebTokenHandler();
150+
var parsedToken = tokenParser.ReadJsonWebToken(userJwt);
151151
var userEmailAddress = string.Empty;
152152
if (parsedToken.Claims.Any(x => x.Type == "email"))
153153
{
@@ -274,8 +274,8 @@ public async Task<IActionResult> RemoteAuthDebug(string code, string state = "")
274274
{
275275
results.Add(OperationResponse.Succeed($"Passed JWT Parsing - id_token: {userJwt}"));
276276
//validate JWT token
277-
var tokenParser = new JwtSecurityTokenHandler();
278-
var parsedToken = tokenParser.ReadJwtToken(userJwt);
277+
var tokenParser = new JsonWebTokenHandler();
278+
var parsedToken = tokenParser.ReadJsonWebToken(userJwt);
279279
var userEmailAddress = string.Empty;
280280
if (parsedToken.Claims.Any(x => x.Type == "email"))
281281
{

0 commit comments

Comments
 (0)