Skip to content

Commit

Permalink
Merge pull request #185 from SSchulze1989/develop
Browse files Browse the repository at this point in the history
v 0.11.1
  • Loading branch information
SSchulze1989 authored Feb 20, 2024
2 parents 70c75c1 + 3ff7f7e commit c12c56d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/iRLeagueApiCore.Client/Http/DefaultTokenStore.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.Extensions.Logging;
using System.IdentityModel.Tokens.Jwt;
using System.Reflection.Metadata;

namespace iRLeagueApiCore.Client.Http;
internal sealed class DefaultTokenStore : ITokenStore
Expand Down Expand Up @@ -44,7 +46,7 @@ public async Task SetAccessTokenAsync(string token)
if (string.IsNullOrEmpty(accessToken) == false)
{
// set expiration date
var jwtToken = new JsonWebTokenHandler().ReadToken(accessToken);
var jwtToken = new JwtSecurityTokenHandler().ReadToken(accessToken);
AccessTokenExpires = jwtToken.ValidTo;
}
TokenChanged?.Invoke(this, EventArgs.Empty);
Expand Down
4 changes: 2 additions & 2 deletions src/iRLeagueApiCore.Client/iRLeagueApiCore.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<PackageReference Include="iRLeagueApiCore.Common" Version="0.11.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="7.3.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.10.0" />
</ItemGroup>

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net6.0</TargetFrameworks>
<PackageId>iRLeagueApiCore.Client</PackageId>
<Version>0.11.0</Version>
<Version>0.11.1</Version>
<Authors>Simon Schulze</Authors>
<Company>Simon Schulze</Company>
<PackageDescription>This package contains shared objects for all members of the iRLeagueDatabase-iRLeagueApi stack</PackageDescription>
Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueApiCore.Server/iRLeagueApiCore.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>0.11.0</Version>
<Version>0.11.1</Version>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down

0 comments on commit c12c56d

Please sign in to comment.