Skip to content

Commit 16fab05

Browse files
authored
Merge pull request #119 from ITfoxtec/development
Development
2 parents 51642b5 + 48f204c commit 16fab05

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/AspNetCoreApi1Sample/AspNetCoreApi1Sample.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.4.14</Version>
5+
<Version>1.4.15</Version>
66
</PropertyGroup>
77

88
<ItemGroup>

src/AspNetCoreApi1Sample/Startup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System.Net.Http;
1+
using System;
2+
using System.Net.Http;
23
using System.Text.Json.Serialization;
3-
using System.Threading.Tasks;
44
using AspNetCoreApi1Sample.Models;
55
using AspNetCoreApi1Sample.Policies;
66
using FoxIDs.SampleHelperLibrary.Infrastructure.Hosting;
@@ -76,9 +76,9 @@ public void ConfigureServices(IServiceCollection services)
7676

7777
options.Events = new JwtBearerEvents
7878
{
79-
OnAuthenticationFailed = async (context) =>
79+
OnAuthenticationFailed = (context) =>
8080
{
81-
await Task.FromResult(string.Empty);
81+
throw new Exception("API 1 authentication failed.", context.Exception);
8282
}
8383
};
8484
});

src/AspNetCoreApi2Sample/AspNetCoreApi2Sample.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.4.14</Version>
5+
<Version>1.4.15</Version>
66
<Nullable>disable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
88
</PropertyGroup>

src/AspNetCoreApi2Sample/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737

3838
options.Events = new JwtBearerEvents
3939
{
40-
OnAuthenticationFailed = async (context) =>
40+
OnAuthenticationFailed = (context) =>
4141
{
42-
await Task.FromResult(string.Empty);
42+
throw new Exception("API 2 authentication failed.", context.Exception);
4343
}
4444
};
4545
});

src/AspNetCoreOidcAuthCodeAllUpPartiesSample/AspNetCoreOidcAuthCodeAllUpPartiesSample.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.4.14</Version>
5+
<Version>1.4.15</Version>
66
<Nullable>disable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<UserSecretsId>a28eb258-4dba-4ab8-8b7a-bdc5b00663df</UserSecretsId>

src/AspNetCoreSamlIdPSample/AspNetCoreSamlIdPSample.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.4.14</Version>
5+
<Version>1.4.15</Version>
66
</PropertyGroup>
77

88
<ItemGroup>

src/ExternalLoginApiSample/ExternalLoginApiSample.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.4.14</Version>
5+
<Version>1.4.15</Version>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)