From fe529ea41cd3fde868fb5595eb440f29293fa0d0 Mon Sep 17 00:00:00 2001 From: Shivam Verma Date: Wed, 6 Sep 2023 15:50:00 +0530 Subject: [PATCH] FIDO-Client Deprecation (#5469) Co-authored-by: randeepsingh01 <49635973+randeepsingh01@users.noreply.github.com> --- .../AuthenticatorInformation.cs | 17 ++++++++++++++++- .../UafAuthenticatorFinder.cs | 2 ++ .../Tizen.Account.FidoClient/UafClient.cs | 10 +++++++++- .../Tizen.Account.FidoClient/UafEnumerations.cs | 9 +++++++++ .../Tizen.Account.FidoClient/UafMessage.cs | 7 ++++++- .../Tizen.Account.FidoClient/UafResponse.cs | 7 ++++++- 6 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs index 7aa413867..9daefbe63 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs @@ -33,6 +33,7 @@ namespace Tizen.Account.FidoClient /// } /// /// + [Obsolete("Deprecated since API11. Might be removed in API13.")] public class AuthenticatorInformation { internal AuthenticatorInformation() @@ -43,84 +44,98 @@ namespace Tizen.Account.FidoClient /// The authenticator Title /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string Title { get; internal set; } /// /// The Authenticator AAID (Authenticator Attestation ID) /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string Aaid { get; internal set; } /// /// The Authenticator description /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string Description { get; internal set; } /// /// The Authenticator assertion scheme. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string AssertionScheme { get; internal set; } /// /// The Authenticator algorithm. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public AuthenticationAlgorithm AuthenticationAlgorithm { get; internal set; } /// /// The user verification method of this Authenticator /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public UserVerificationMethod UserVerification { get; internal set; } /// /// The key protection method of this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public KeyProtectionType KeyProtection { get; internal set; } /// /// The matcher protection method of this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public MatcherProtectionType MatcherProtection { get; internal set; } /// /// The attachment hint of this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public AuthenticatorAttachmentHint AttachmentHint { get; internal set; } /// /// Denotes the Authenticator is Second factor only which is supported by U2F standards. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public bool IsSecondFactorOnly { get; internal set; } /// /// The available attestation types for this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public IEnumerable AttestationTypes { get; internal set; } /// /// The Transaction Confirmation display type of this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public TransactionConfirmationDisplayType TcDisplayType { get; internal set; } /// /// The Transaction Confirmation display type of this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string TcDisplayContentType { get; internal set; } /// /// The icon of this Authenticator. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string Icon { get; internal set; } } -} \ No newline at end of file +} diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs index 059e6c472..01e6faa96 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs @@ -25,6 +25,7 @@ namespace Tizen.Account.FidoClient /// Class to find available FIDO specific authenticators on the device /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static class UafAuthenticatorFinder { /// @@ -48,6 +49,7 @@ namespace Tizen.Account.FidoClient /// /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static async Task> DiscoverAuthenticatorsAsync() { IEnumerable result = null; diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafClient.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafClient.cs index 363f9fbb1..c65a07399 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafClient.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafClient.cs @@ -27,6 +27,7 @@ namespace Tizen.Account.FidoClient /// The FIDO UAF Client APIs /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static class UafClient { private static string _vendorName = null; @@ -58,6 +59,7 @@ namespace Tizen.Account.FidoClient /// The FIDO Client vendor name /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static string VendorName { get @@ -70,6 +72,7 @@ namespace Tizen.Account.FidoClient /// The FIDO Client Major version /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static int MajorVersion { get @@ -82,6 +85,7 @@ namespace Tizen.Account.FidoClient /// The FIDO Client Minor version /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static int MinorVersion { get @@ -94,6 +98,7 @@ namespace Tizen.Account.FidoClient /// The FIDO Server response for successfull interaction. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static int StautsOk { get @@ -122,6 +127,7 @@ namespace Tizen.Account.FidoClient /// bool response = await UafClient.CheckPolicyAsync(uafRequest); /// /// + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static async Task CheckPolicyAsync(UafMessage uafMessage) { if (uafMessage == null) @@ -157,6 +163,7 @@ namespace Tizen.Account.FidoClient /// var response = await UafClient.ProcessRequestAsync(uafRequest, null); /// /// + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static async Task ProcessRequestAsync(UafMessage uafMessage, string channelBindng) { if (uafMessage == null) @@ -222,6 +229,7 @@ namespace Tizen.Account.FidoClient /// await UafClient.NotifyResultAsync(UafClient.StautsOk, response); /// /// + [Obsolete("Deprecated since API11. Might be removed in API13.")] public static async Task NotifyResultAsync(int responseCode, UafResponse response) { if (response == null) @@ -256,4 +264,4 @@ namespace Tizen.Account.FidoClient } } -} \ No newline at end of file +} diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafEnumerations.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafEnumerations.cs index 89367ff75..0077b8cf6 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafEnumerations.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafEnumerations.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace Tizen.Account.FidoClient { /// /// Authenticator's supported algorithm and encoding /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum AuthenticationAlgorithm { /// @@ -63,6 +66,7 @@ namespace Tizen.Account.FidoClient /// Authenticator's supported user verification method type. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum UserVerificationMethod { /// @@ -135,6 +139,7 @@ namespace Tizen.Account.FidoClient /// Authenticator's supported key protection method type. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum KeyProtectionType { /// @@ -172,6 +177,7 @@ namespace Tizen.Account.FidoClient /// Authenticator's supported matcher protection type. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum MatcherProtectionType { /// @@ -197,6 +203,7 @@ namespace Tizen.Account.FidoClient /// Authenticator's supproted method to communicate to FIDO user device. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum AuthenticatorAttachmentHint { /// @@ -258,6 +265,7 @@ namespace Tizen.Account.FidoClient /// Authenticator's supported Attestation type. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum AuthenticatorAttestationType { /// @@ -277,6 +285,7 @@ namespace Tizen.Account.FidoClient /// Transaction confirmation display capability type. /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public enum TransactionConfirmationDisplayType { /// diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafMessage.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafMessage.cs index 92fe2fefb..d08d5ae29 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafMessage.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafMessage.cs @@ -14,18 +14,22 @@ * limitations under the License. */ +using System; + namespace Tizen.Account.FidoClient { /// /// The FIDO message received from the relying party server /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public class UafMessage { /// /// The constructor /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public UafMessage() { } @@ -34,6 +38,7 @@ namespace Tizen.Account.FidoClient /// The FIDO message in JSON format which is received from the relying party server /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string Operation { get; set; } } -} \ No newline at end of file +} diff --git a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafResponse.cs b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafResponse.cs index bc63076f3..e53e7d486 100755 --- a/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafResponse.cs +++ b/src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafResponse.cs @@ -14,18 +14,22 @@ * limitations under the License. */ +using System; + namespace Tizen.Account.FidoClient { /// /// Represents FIDO response message /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public class UafResponse { /// /// The constructor /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public UafResponse() { } @@ -34,6 +38,7 @@ namespace Tizen.Account.FidoClient /// FIDO response message in JSON format /// /// 3 + [Obsolete("Deprecated since API11. Might be removed in API13.")] public string Response { set; get; } } -} \ No newline at end of file +} -- 2.34.1