Skip to content

Commit

Permalink
Fix JumpCloud for .NET 8
Browse files Browse the repository at this point in the history
- Remove `ISystemClock`.
- Suppress `CA1863`.
  • Loading branch information
martincostello committed Aug 15, 2023
1 parent d86e1d5 commit 8b25479
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static class JumpCloudAuthenticationDefaults
/// </summary>
public static readonly string UserInformationEndpointPathFormat = "/userinfo";

#pragma warning disable CA1863
/// <summary>
/// Default path to use for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
/// </summary>
Expand All @@ -62,4 +63,5 @@ public static class JumpCloudAuthenticationDefaults
/// Default path to use for <see cref="OAuthOptions.UserInformationEndpoint"/>.
/// </summary>
public static readonly string UserInformationEndpointPath = string.Format(CultureInfo.InvariantCulture, UserInformationEndpointPathFormat);
#pragma warning disable CA1863
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ public partial class JumpCloudAuthenticationHandler : OAuthHandler<JumpCloudAuth
/// <param name="options">The authentication options.</param>
/// <param name="logger">The logger to use.</param>
/// <param name="encoder">The URL encoder to use.</param>
/// <param name="clock">The system clock to use.</param>
public JumpCloudAuthenticationHandler(
[NotNull] IOptionsMonitor<JumpCloudAuthenticationOptions> options,
[NotNull] ILoggerFactory logger,
[NotNull] UrlEncoder encoder,
[NotNull] ISystemClock clock)
: base(options, logger, encoder, clock)
[NotNull] UrlEncoder encoder)
: base(options, logger, encoder)
{
}

Expand Down

0 comments on commit 8b25479

Please sign in to comment.