Browse Source

Replace [SupportedOSPlatform("maccatalyst13.0")] by [SupportedOSPlatform("maccatalyst13.1")]

pull/2132/head
Kévin Chalet 2 years ago
parent
commit
f7e33cb64a
  1. 2
      src/OpenIddict.Client.Owin/OpenIddictClientOwinMiddlewareFactory.cs
  2. 2
      src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationAuthenticationMode.cs
  3. 2
      src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationBuilder.cs
  4. 4
      src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHelpers.cs
  5. 2
      src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationService.cs
  6. 2
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs
  7. 2
      src/OpenIddict.Server.Owin/OpenIddictServerOwinMiddlewareFactory.cs
  8. 2
      src/OpenIddict.Validation.Owin/OpenIddictValidationOwinMiddlewareFactory.cs

2
src/OpenIddict.Client.Owin/OpenIddictClientOwinMiddlewareFactory.cs

@ -33,7 +33,7 @@ public sealed class OpenIddictClientOwinMiddlewareFactory : OwinMiddleware
/// </summary>
/// <param name="context">The <see cref="IOwinContext"/>.</param>
/// <returns>
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation.
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
public override Task Invoke(IOwinContext context)
{

2
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationAuthenticationMode.cs

@ -32,7 +32,7 @@ public enum OpenIddictClientSystemIntegrationAuthenticationMode
/// AS web authentication session-based authentication and logout.
/// </summary>
[SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")]
[SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")]
ASWebAuthenticationSession = 2
}

2
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationBuilder.cs

@ -54,7 +54,7 @@ public sealed class OpenIddictClientSystemIntegrationBuilder
/// </summary>
/// <returns>The <see cref="OpenIddictClientSystemIntegrationBuilder"/>.</returns>
[SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")]
[SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")]
public OpenIddictClientSystemIntegrationBuilder UseASWebAuthenticationSession()
{

4
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHelpers.cs

@ -62,7 +62,7 @@ public static class OpenIddictClientSystemIntegrationHelpers
/// <param name="transaction">The transaction instance.</param>
/// <returns>The <see cref="NSUrl"/> instance or <see langword="null"/> if it couldn't be found.</returns>
[SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")]
[SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")]
public static NSUrl? GetASWebAuthenticationCallbackUrl(this OpenIddictClientTransaction transaction)
=> transaction.GetProperty<NSUrl>(typeof(NSUrl).FullName!);
@ -117,7 +117,7 @@ public static class OpenIddictClientSystemIntegrationHelpers
/// <returns><see langword="true"/> if the ASWebAuthenticationSession API is supported, <see langword="false"/> otherwise.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[SupportedOSPlatformGuard("ios12.0")]
[SupportedOSPlatformGuard("maccatalyst13.0")]
[SupportedOSPlatformGuard("maccatalyst13.1")]
[SupportedOSPlatformGuard("macos10.15")]
internal static bool IsASWebAuthenticationSessionSupported()
#if SUPPORTS_OPERATING_SYSTEM_VERSIONS_COMPARISON

2
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationService.cs

@ -77,7 +77,7 @@ public sealed class OpenIddictClientSystemIntegrationService
/// <returns>A <see cref="Task"/> that can be used to monitor the asynchronous operation.</returns>
/// <exception cref="ArgumentNullException"><paramref name="url"/> is <see langword="null"/>.</exception>
[SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")]
[SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")]
internal Task HandleASWebAuthenticationCallbackUrlAsync(NSUrl url, CancellationToken cancellationToken = default)
=> HandleRequestAsync(url, cancellationToken);

2
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

@ -1952,7 +1952,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers
// Weibo implements a non-standard client authentication method for its endpoints that
// requires sending the token as "access_token" instead of the standard "token" parameter.
if (context.Registration.ProviderType is ProviderTypes.Weibo)
else if (context.Registration.ProviderType is ProviderTypes.Weibo)
{
context.RevocationRequest.AccessToken = context.RevocationRequest.Token;
context.RevocationRequest.Token = null;

2
src/OpenIddict.Server.Owin/OpenIddictServerOwinMiddlewareFactory.cs

@ -33,7 +33,7 @@ public sealed class OpenIddictServerOwinMiddlewareFactory : OwinMiddleware
/// </summary>
/// <param name="context">The <see cref="IOwinContext"/>.</param>
/// <returns>
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation.
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
public override Task Invoke(IOwinContext context)
{

2
src/OpenIddict.Validation.Owin/OpenIddictValidationOwinMiddlewareFactory.cs

@ -33,7 +33,7 @@ public sealed class OpenIddictValidationOwinMiddlewareFactory : OwinMiddleware
/// </summary>
/// <param name="context">The <see cref="IOwinContext"/>.</param>
/// <returns>
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation.
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
public override Task Invoke(IOwinContext context)
{

Loading…
Cancel
Save