Skip to content

Commit

Permalink
Addressing IDE0290 and other warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Jan 18, 2024
1 parent 3438447 commit ca84422
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Apis/Context/AuthenticationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ protected override Task HandleRequirementAsync(AuthorizationHandlerContext conte
}
}

internal sealed class AlwaysLoggedInApiAuthenticationHandler : AuthenticationHandler<ApiAuthorizationOptions>
internal sealed class AlwaysLoggedInApiAuthenticationHandler(
IOptionsMonitor<ApiAuthorizationOptions> options,
ILoggerFactory logger,
UrlEncoder encoder) : AuthenticationHandler<ApiAuthorizationOptions>(options, logger, encoder)
{
public AlwaysLoggedInApiAuthenticationHandler(
IOptionsMonitor<ApiAuthorizationOptions> options,
ILoggerFactory logger,
UrlEncoder encoder)
: base(options, logger, encoder) { }

protected override Task<AuthenticateResult> HandleAuthenticateAsync() =>
Task.FromResult(
AuthenticateResult.Success(
Expand Down

0 comments on commit ca84422

Please sign in to comment.