Skip to content

Commit

Permalink
v1.5.0 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawxy authored Aug 27, 2021
1 parent b94f8c8 commit fef20e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions samples/Sample.AspNetCore/Sample.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.38.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.8" />
<PackageReference Include="Grpc.AspNetCore" Version="2.39.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.9" />
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions samples/Sample.ConsoleApp/Sample.ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.17.3" />
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.38.0" />
<PackageReference Include="Grpc.Tools" Version="2.38.1">
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.39.0" />
<PackageReference Include="Grpc.Tools" Version="2.39.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Nullable>enable</Nullable>
<Version>1.4.1</Version>
<Version>1.5.0</Version>
<Authors>Hawxy</Authors>
<Description>Dependency Injection, HttpClientFactory &amp; ASP.NET Core extensions for Auth0.NET</Description>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
Expand All @@ -18,8 +18,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Auth0.AuthenticationApi" Version="7.8.1" />
<PackageReference Include="Auth0.ManagementApi" Version="7.8.1" />
<PackageReference Include="Auth0.AuthenticationApi" Version="7.9.0" />
<PackageReference Include="Auth0.ManagementApi" Version="7.9.0" />
<PackageReference Include="LazyCache.AspNetCore" Version="2.1.3" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
Expand All @@ -43,7 +43,7 @@
</ItemGroup>

<ItemGroup>
<None Include="Images\icon.png" Pack="true" PackagePath=""/>
<None Include="Images\icon.png" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="FakeItEasy" Version="7.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
7 changes: 4 additions & 3 deletions tests/Auth0Net.DependencyInjection.Tests/CacheTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Auth0.AuthenticationApi;
using Auth0.AuthenticationApi.Models;
Expand Down Expand Up @@ -29,7 +30,7 @@ public async Task Cache_WorksAsExpected()

var accessTokenFirst = Guid.NewGuid().ToString();

A.CallTo(() => authClient.GetTokenAsync(A<ClientCredentialsTokenRequest>.Ignored)).Returns(
A.CallTo(() => authClient.GetTokenAsync(A<ClientCredentialsTokenRequest>.Ignored, A<CancellationToken>.Ignored)).Returns(
new AccessTokenResponse
{
AccessToken = accessTokenFirst,
Expand All @@ -46,7 +47,7 @@ public async Task Cache_WorksAsExpected()

var accessTokenSecond = Guid.NewGuid().ToString();

A.CallTo(() => authClient.GetTokenAsync(A<ClientCredentialsTokenRequest>.Ignored)).Returns(
A.CallTo(() => authClient.GetTokenAsync(A<ClientCredentialsTokenRequest>.Ignored, A<CancellationToken>.Ignored)).Returns(
new AccessTokenResponse
{
AccessToken = accessTokenSecond,
Expand All @@ -56,7 +57,7 @@ public async Task Cache_WorksAsExpected()
var resSecond = await cache.GetTokenAsync(key);
Assert.Equal(accessTokenSecond, resSecond);

A.CallTo(() => authClient.GetTokenAsync(A<ClientCredentialsTokenRequest>.Ignored))
A.CallTo(() => authClient.GetTokenAsync(A<ClientCredentialsTokenRequest>.Ignored, A<CancellationToken>.Ignored))
.MustHaveHappenedTwiceExactly();


Expand Down

0 comments on commit fef20e3

Please sign in to comment.