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> /// </summary>
/// <param name="context">The <see cref="IOwinContext"/>.</param> /// <param name="context">The <see cref="IOwinContext"/>.</param>
/// <returns> /// <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> /// </returns>
public override Task Invoke(IOwinContext context) 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. /// AS web authentication session-based authentication and logout.
/// </summary> /// </summary>
[SupportedOSPlatform("ios12.0")] [SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")] [SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")] [SupportedOSPlatform("macos10.15")]
ASWebAuthenticationSession = 2 ASWebAuthenticationSession = 2
} }

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

@ -54,7 +54,7 @@ public sealed class OpenIddictClientSystemIntegrationBuilder
/// </summary> /// </summary>
/// <returns>The <see cref="OpenIddictClientSystemIntegrationBuilder"/>.</returns> /// <returns>The <see cref="OpenIddictClientSystemIntegrationBuilder"/>.</returns>
[SupportedOSPlatform("ios12.0")] [SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")] [SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")] [SupportedOSPlatform("macos10.15")]
public OpenIddictClientSystemIntegrationBuilder UseASWebAuthenticationSession() 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> /// <param name="transaction">The transaction instance.</param>
/// <returns>The <see cref="NSUrl"/> instance or <see langword="null"/> if it couldn't be found.</returns> /// <returns>The <see cref="NSUrl"/> instance or <see langword="null"/> if it couldn't be found.</returns>
[SupportedOSPlatform("ios12.0")] [SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")] [SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")] [SupportedOSPlatform("macos10.15")]
public static NSUrl? GetASWebAuthenticationCallbackUrl(this OpenIddictClientTransaction transaction) public static NSUrl? GetASWebAuthenticationCallbackUrl(this OpenIddictClientTransaction transaction)
=> transaction.GetProperty<NSUrl>(typeof(NSUrl).FullName!); => 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> /// <returns><see langword="true"/> if the ASWebAuthenticationSession API is supported, <see langword="false"/> otherwise.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
[SupportedOSPlatformGuard("ios12.0")] [SupportedOSPlatformGuard("ios12.0")]
[SupportedOSPlatformGuard("maccatalyst13.0")] [SupportedOSPlatformGuard("maccatalyst13.1")]
[SupportedOSPlatformGuard("macos10.15")] [SupportedOSPlatformGuard("macos10.15")]
internal static bool IsASWebAuthenticationSessionSupported() internal static bool IsASWebAuthenticationSessionSupported()
#if SUPPORTS_OPERATING_SYSTEM_VERSIONS_COMPARISON #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> /// <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> /// <exception cref="ArgumentNullException"><paramref name="url"/> is <see langword="null"/>.</exception>
[SupportedOSPlatform("ios12.0")] [SupportedOSPlatform("ios12.0")]
[SupportedOSPlatform("maccatalyst13.0")] [SupportedOSPlatform("maccatalyst13.1")]
[SupportedOSPlatform("macos10.15")] [SupportedOSPlatform("macos10.15")]
internal Task HandleASWebAuthenticationCallbackUrlAsync(NSUrl url, CancellationToken cancellationToken = default) internal Task HandleASWebAuthenticationCallbackUrlAsync(NSUrl url, CancellationToken cancellationToken = default)
=> HandleRequestAsync(url, cancellationToken); => 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 // 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. // 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.AccessToken = context.RevocationRequest.Token;
context.RevocationRequest.Token = null; context.RevocationRequest.Token = null;

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

@ -33,7 +33,7 @@ public sealed class OpenIddictServerOwinMiddlewareFactory : OwinMiddleware
/// </summary> /// </summary>
/// <param name="context">The <see cref="IOwinContext"/>.</param> /// <param name="context">The <see cref="IOwinContext"/>.</param>
/// <returns> /// <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> /// </returns>
public override Task Invoke(IOwinContext context) public override Task Invoke(IOwinContext context)
{ {

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

@ -33,7 +33,7 @@ public sealed class OpenIddictValidationOwinMiddlewareFactory : OwinMiddleware
/// </summary> /// </summary>
/// <param name="context">The <see cref="IOwinContext"/>.</param> /// <param name="context">The <see cref="IOwinContext"/>.</param>
/// <returns> /// <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> /// </returns>
public override Task Invoke(IOwinContext context) public override Task Invoke(IOwinContext context)
{ {

Loading…
Cancel
Save