Skip to content

Commit 3b181b0

Browse files
Pull request #13: feature/EOA-2079-Removed App Verify SDK from C# SS SDK
Merge in SDK/csharp_telesign from feature/EOA-2079 to developer Squashed commit of the following: commit bc448933025e7fe604f9a02d0738f92bd2e31414 Author: MousumiMohanty <@telesign.com> Date: Mon Jul 7 15:20:09 2025 +0530 added the version change file commit 380f3bfd42aae01be205aac5d1d681e39a569276 Author: MousumiMohanty <@telesign.com> Date: Mon Jul 7 12:15:00 2025 +0530 updated the correct version commit fbc9e2b21b3f50dc7f6b812aacd7a67c0525b98b Author: MousumiMohanty <@telesign.com> Date: Fri Jul 4 13:07:42 2025 +0530 Removed App Verify SDK from C# SS SDK commit 23dec0c Merge: 8e9de53 1d89dbd Author: Mousumi Mohanty <mmohanty@telesign.com> Date: Thu May 29 15:16:42 2025 +0000 Pull request #12: Developer Merge in SDK/csharp_telesign from developer to master * commit '1d89dbd406db2241fd95e047c82689590b6bdf13': updated the release.md and version Added Patch method in RestClient
1 parent 1d89dbd commit 3b181b0

File tree

4 files changed

+5
-76
lines changed

4 files changed

+5
-76
lines changed

RELEASE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.0.0
2+
- Removed all functionality and methods for App Verify SDK (Android) from the C# SS SDK
3+
14
2.6.0
25
- Added PATCH method to RestClient.cs file
36
- Updated version in the Telesign.csproj

Telesign.Test/AppVerifyClientTest.cs

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Diagnostics.CodeAnalysis;
32
using System.Net;
43
using MockHttpServer;
@@ -23,7 +22,7 @@ public class AppVerifyClientTest : IDisposable
2322
public void SetUp()
2423
{
2524
customerId = Environment.GetEnvironmentVariable("CUSTOMER_ID")?? "FFFFFFFF-EEEE-DDDD-1234-AB1234567890";
26-
apiKey = Environment.GetEnvironmentVariable("API_KEY") ?? "Example/idksdjKJD+==";
25+
apiKey = Environment.GetEnvironmentVariable("API_KEY") ?? "ABC12345yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw==";
2726

2827
requests = [];
2928
requestBodies = [];
@@ -76,44 +75,4 @@ public void TestAppVerifyClientConstructors()
7675
{
7776
_ = new AppVerifyClient(customerId, apiKey);
7877
}
79-
80-
[Test]
81-
public void TestAppVerifyClientStatus()
82-
{
83-
AppVerifyClient client = new(customerId, apiKey, string.Format("http://localhost:{0}", mockServer.Port), "csharp_telesign", null, null);
84-
85-
string externalId = new Guid().ToString();
86-
87-
mockServer.AddRequestHandler(new MockHttpHandler($"/v1/mobile/verification/status/{externalId}", "GET", handlerLambda));
88-
89-
client.Status(externalId);
90-
91-
Assert.That(requests.Last().HttpMethod, Is.EqualTo("GET"), "method is not as expected");
92-
Assert.That(requests.Last().RawUrl, Is.EqualTo($"/v1/mobile/verification/status/{externalId}"), "path is not as expected");
93-
Assert.That(requestHeaders.Last()["Content-Type"], Is.Empty);
94-
Assert.That(requestHeaders.Last()["x-ts-auth-method"], Is.EqualTo("HMAC-SHA256"), "x-ts-auth-method header is not as expected");
95-
Assert.That(Guid.TryParse(requestHeaders.Last()["x-ts-nonce"], out Guid dummyGuid), Is.True, "x-ts-nonce header is not a valid UUID");
96-
Assert.That(DateTime.TryParse(requestHeaders.Last()["Date"], out DateTime dummyDateTime), Is.True , "Date header is not valid rfc2616 format");
97-
Assert.That(requestHeaders.Last()["Authorization"], Is.Not.Null);
98-
}
99-
100-
[Test]
101-
public async Task TestAppVerifyClientStatusAsync()
102-
{
103-
AppVerifyClient client = new(customerId, apiKey, string.Format("http://localhost:{0}", mockServer.Port), "csharp_telesign", null, null);
104-
105-
string externalId = new Guid().ToString();
106-
107-
mockServer.AddRequestHandler(new MockHttpHandler($"/v1/mobile/verification/status/{externalId}", "GET", handlerLambda));
108-
109-
await client.StatusAsync(externalId);
110-
111-
Assert.That(requests.Last().HttpMethod, Is.EqualTo("GET"), "method is not as expected");
112-
Assert.That(requests.Last().RawUrl, Is.EqualTo($"/v1/mobile/verification/status/{externalId}"), "path is not as expected");
113-
Assert.That(requestHeaders.Last()["Content-Type"], Is.Empty);
114-
Assert.That(requestHeaders.Last()["x-ts-auth-method"], Is.EqualTo("HMAC-SHA256"), "x-ts-auth-method header is not as expected");
115-
Assert.That(Guid.TryParse(requestHeaders.Last()["x-ts-nonce"], out Guid dummyGuid), Is.True, "x-ts-nonce header is not a valid UUID");
116-
Assert.That(DateTime.TryParse(requestHeaders.Last()["Date"], out DateTime dummyDateTime), Is.True , "Date header is not valid rfc2616 format");
117-
Assert.That(requestHeaders.Last()["Authorization"], Is.Not.Null);
118-
}
11978
}

Telesign/AppVerifyClient.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
21
using System.Net;
3-
using System.Collections.Generic;
4-
using System.Threading.Tasks;
52

63
namespace Telesign
74
{
@@ -10,8 +7,6 @@ namespace Telesign
107
/// </summary>
118
public class AppVerifyClient : RestClient
129
{
13-
private const string APPVERIFY_STATUS_RESOURCE = "/v1/mobile/verification/status/{0}";
14-
1510
public AppVerifyClient(string customerId,
1611
string apiKey)
1712
: base(customerId,
@@ -54,33 +49,5 @@ public AppVerifyClient(string customerId,
5449
sdkVersionDependency)
5550
{
5651
}
57-
58-
/// <summary>
59-
/// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification
60-
/// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
61-
/// indicate a successful verification.
62-
///
63-
/// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or
64-
/// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed
65-
/// API documentation.
66-
/// </summary>
67-
public TelesignResponse Status(string externalId, Dictionary<string, string> parameters = null)
68-
{
69-
return Get(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters);
70-
}
71-
72-
/// <summary>
73-
/// Retrieves the verification result for an AppVerify transaction by externalId. To ensure a secure verification
74-
/// flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
75-
/// indicate a successful verification.
76-
///
77-
/// See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-obtaining-verification-status or
78-
/// https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-obtaining-verification-status for detailed
79-
/// API documentation.
80-
/// </summary>
81-
public Task<TelesignResponse> StatusAsync(string externalId, Dictionary<string, string> parameters = null)
82-
{
83-
return GetAsync(string.Format(APPVERIFY_STATUS_RESOURCE, externalId), parameters);
84-
}
8552
}
8653
}

Telesign/Telesign.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Nullable>disable</Nullable>
1717
<PackageIcon>nuget_icon.png</PackageIcon>
1818
<PackageReadmeFile>README.md</PackageReadmeFile>
19-
<Version>2.6.0</Version>
19+
<Version>3.0.0</Version>
2020
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2121
</PropertyGroup>
2222

0 commit comments

Comments
 (0)