Skip to content

Commit

Permalink
Merge pull request #469 from akunzai/net8-systemclock
Browse files Browse the repository at this point in the history
The `ISystemClock` is obsolete since ASP.NET Core 8.0
  • Loading branch information
akunzai authored Dec 10, 2023
2 parents 9c841a3 + 21b8742 commit 99a4d98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ namespace GSS.Authentication.CAS.AspNetCore;
public class CasAuthenticationHandler<TOptions> : RemoteAuthenticationHandler<TOptions>
where TOptions : CasAuthenticationOptions, new()
{
#if NET8_0_OR_GREATER
public CasAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder)
: base(options, logger, encoder)
{
}
#else
public CasAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder,
ISystemClock clock)
: base(options, logger, encoder, clock)
{
}
#endif

protected new CasEvents Events
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFrameworks>netcoreapp3.1;net8.0</TargetFrameworks>
<Description>ASP.NET Core Middlewares for CAS Authentication</Description>
</PropertyGroup>

Expand Down

0 comments on commit 99a4d98

Please sign in to comment.