Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
81fb993
PB-96570 Change test cases for passing SDK tests on OSSQ6
houjianyu Aug 24, 2023
055173d
PB-96954 Add support for LexisNexis as a KBA authentication method vi…
sohanal1 Jul 12, 2023
f9f82cc
PB-96572 Release .NET SDK 23.R4(11.53)
houjianyu Aug 25, 2023
1b5ff68
PB-97465 Support fields tooltip
zbi-ospn Aug 16, 2023
fe32da5
PB-98888 Release .NET SDK 11.54
houjianyu Oct 11, 2023
ec73713
PB-100965 Modified AuditService, FieldSummaryService and SessionServi…
houjianyu Dec 4, 2023
c6dadd1
PB-100965 Modified AuditService, FieldSummaryService and SessionServi…
houjianyu Dec 4, 2023
5272d6f
feat: PB-100770 Add base64 encoded document content support when crea…
Kehang-Xu Nov 24, 2023
2ad9c48
feat: PB-96798 Cleanup Equifax CA and US .Net SDK code
sohanal1 Nov 24, 2023
febba7f
feat: PB-101903 Revert Equifax code cleanup - .Net sdk project
sohanal1 Dec 18, 2023
4c75bee
fix: PB-102587 Updated get packages API CALL
devirte1 Jan 22, 2024
d2b15b6
PB-102213 Release SDK 24R1(11.55)
houjianyu Jan 24, 2024
05adfd7
PB-102737 Removed validateMixingSignatureAndAcceptance(), and some 'e…
houjianyu Feb 7, 2024
464e147
feat: PB-101327 Support Base64 encoded document uploading in '/docume…
Kehang-Xu Feb 12, 2024
1fc67ca
feat: PB-98670 Configure signature logo
zbi-ospn Feb 13, 2024
3604e64
feat: PB-102326 Add example and tester for Account role with Layout P…
sohanal1 Feb 14, 2024
6bb6318
PB-98153 Following the changes for Group Management
houjianyu Feb 16, 2024
5ffab25
Changed the Email Addresses to Amazon one
houjianyu Feb 20, 2024
aa31801
feat: PB-102640 Cleanup Equifax CA and US .Net SDK code
sohanal1 Nov 24, 2023
58acd83
PB-103752 Release SDK 24.R2 (11.56)
houjianyu Mar 27, 2024
8ae2eab
feat: PB-103027 add integration-framework workflow setting in package…
Kehang-Xu Mar 25, 2024
7b9f0eb
feat: PB-101661 Add example and tester for Account role with Template…
sohanal1 Apr 8, 2024
174b403
PB-104573 Added signature.signed property and related tests
houjianyu Apr 10, 2024
54dd7fd
feat: PB-100611 Support Name Order setting from .NET SDK
sohanal1 Apr 17, 2024
7c1c858
feat: PB-103730 Adding allowSignersDownloadEvidenceSummary feature se…
singhjaswinderOnespan Apr 10, 2024
7297fb5
fix: Update default.signers.properties with missing properties
sohanal1 Apr 17, 2024
9dcfe67
PB-105097 Added UserId in SDK model of GroupMember
houjianyu Apr 27, 2024
c71cde7
PB-102670 Changed the Example
houjianyu Apr 27, 2024
f0c10fe
feat: PB-92764 Self-Serve Phase 4 - Designer Settings
devirte1 Oct 30, 2023
ed2cb59
feat: PB-92764 Self Serve Phase 4 - Email Reminders
devirte1 Oct 30, 2023
94973a1
feat: PB-92764 Self Serve Phase 4 - Upload Settings
devirte1 Oct 31, 2023
ed09da9
feat: PB-92764 Self Serve Phase 4 - System Settings
devirte1 Nov 1, 2023
7410d51
feat: PB-92764 minor changes
devirte1 Nov 1, 2023
67079b7
feat: PB-92764 misc changes
devirte1 Nov 1, 2023
2087048
feat: PB-92764 Self Serve Phase 4 - Converter and Builder Tests
devirte1 Nov 6, 2023
c25046a
PB-104564 Release SDK 24.R3(11.57)
houjianyu May 15, 2024
444ce7a
feat: PB-92764 Self Serve Phase 4 - System Settings
devirte1 Nov 1, 2023
80f68b0
PB-105212: Update Java and .NET SDKs to support vaulting data API.
suxi1-ospn Jun 3, 2024
03f6d50
PB-105212: Update Java and .NET SDKs to support vaulting data API.
suxi1-ospn Jun 3, 2024
b1fb7fa
Merge pull request #118 from mrmontreal/master
mrmontreal Jun 3, 2024
5a661b4
Revert "PB-105212: Update Java and .NET SDKs to support vaulting data…
eslci-esl Jun 5, 2024
87ba42a
Merge pull request #119 from OneSpan/revert-118-master
houjianyu Jun 5, 2024
ef70415
feat : PB-101292 Implement the OAuth authentication to the .Net SDK
sohanal1 May 29, 2024
3bdd144
feat: PB-106699 Add leeway for oauth2 access token expiry
gadheam1-oss Jun 27, 2024
2a8ef10
feat : PB-101292 Implement the OAuth authentication to the .Net SDK
sohanal1 May 29, 2024
9d1b7aa
feat : PB-101292 Implement the OAuth authentication to the .Net SDK
sohanal1 May 29, 2024
96aac8b
feat : PB-101292 Implement the OAuth authentication to the .Net SDK
sohanal1 May 29, 2024
fe4afcf
feat: PB-106699 Add leeway for oauth2 access token expiry
gadheam1-oss Jun 27, 2024
34542ca
feat: PB-106699 Update Oauth2Token expiry leeway
gadheam1-oss Jul 10, 2024
e9f6025
feat: PB-107312 Implement a new oss client provider to manage multipl…
ckeyrouz Jul 17, 2024
711f797
feat: PB-107312 Add an example to test the oauth2 mechanism.
ckeyrouz Jul 18, 2024
e407b10
feat: PB-107312 Add files deleted by mistake.
ckeyrouz Jul 18, 2024
1b1c6a6
feat: PB-107312 Revert changes done to the configuration of the project.
ckeyrouz Jul 18, 2024
6ab38ae
Merge PB-106706 QASMS Authentication (#124)
houjianyu Jul 19, 2024
7710fab
PB-106624 Release SDK 24.R4(11.58)
houjianyu Jul 31, 2024
bb65aa3
Merge PB-106706 QASMS Authentication (#124)
houjianyu Jul 19, 2024
07ce30c
Merge PB-106706 QASMS Authentication (#124)
houjianyu Jul 19, 2024
8eba8a3
feat: PB-102387 Limit Supported Languages Self-Serve (#125)
devirte1 Aug 5, 2024
5c89729
fix: PB-109955 Change the usage of UrlTemplate to become thread safe.…
ckeyrouz Oct 3, 2024
d883dd3
PB-108595 Release 24.R5(11.59) SDK + misc changes (#127)
houjianyu Oct 11, 2024
d769b58
PB-108595 Release 24.R5 (11.59) SDK with misc. changes.
houjianyu Oct 11, 2024
b2fe364
Update ApplicationLogger.cs
B-HOLLEY Oct 17, 2024
6933a5b
Merge branch 'dev' of https://github.com/OneSpan/oss.sdk.net into dev
B-HOLLEY Feb 17, 2025
2176570
Fixed OAuth2 token expiration handling.
B-HOLLEY Feb 17, 2025
c98d8cb
Merge branch 'master' into dev
B-HOLLEY Feb 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/SDK/Internal/ApplicationLogger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#define TRACE

using System;
using System.Diagnostics;

namespace OneSpanSign.Sdk.Internal
Expand Down
1 change: 0 additions & 1 deletion src/SDK/Internal/UrlTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ public class UrlTemplate
public static readonly string ACCOUNT_FEATURE_SETTINGS_PATH = "/account/admin/accountSettings/featureSettings";
// Account Package Settings Service
public static readonly string ACCOUNT_PACKAGE_SETTINGS_PATH = "/account/admin/accountSettings/packageSettings";

//Account Designer Settings Service
public static readonly String ACCOUNT_DESIGNER_SETTINGS_PATH = "/account/admin/accountSettings/designerSettings";
//Account Email Reminder Settings Service
Expand Down
13 changes: 8 additions & 5 deletions src/SDK/Oauth/Oauth2TokenManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ public bool IsOAuth2TokenExpired(string oAuthAccessToken)

JObject payloadJson = JObject.Parse(payload);

long unixEpochTime = (long)payloadJson["exp"];
DateTime tokenExpiresAt = DateTime.UtcNow.AddSeconds(unixEpochTime);
DateTimeOffset now = DateTimeOffset.Now;

return now > tokenExpiresAt.Subtract(TimeSpan.FromSeconds(AccessTokenExpirationLeeway));
//The tokens expiration represented as the number of seconds from 1/1/1970 UTC.
long tokenExpireEpoch = (long)payloadJson["exp"];

//Convert token expiration to DateTime.
var tokenExpiresAt = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
tokenExpiresAt = tokenExpiresAt.AddSeconds(tokenExpireEpoch);

return DateTime.UtcNow > tokenExpiresAt.Subtract(TimeSpan.FromSeconds(AccessTokenExpirationLeeway));
}
}
}
1 change: 0 additions & 1 deletion src/SDK/Services/AccountConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ public void PatchAccountSystemSettingProperties(AccountSystemSettingProperties a
public void DeleteAccountSystemSettingProperties() {
apiClient.DeleteAccountSystemSettingProperties();
}

public SignatureLayout GetSignatureLayout()
{
return apiClient.GetSignatureLayout();
Expand Down
2 changes: 1 addition & 1 deletion src/SDK/Services/Internal/AccountConfigClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ public void PatchAccountSystemSettingProperties(AccountSystemSettingProperties a
throw new OssException("Could not save the account system settings.", e);
}
}

public void DeleteAccountSystemSettingProperties()
{
string path = new UrlTemplate(baseUrl).UrlFor(UrlTemplate.ACCOUNT_SYSTEM_SETTING_PROPERTIES_PATH).Build();
Expand Down
2 changes: 1 addition & 1 deletion src/Samples.Tests/Tests/TextAnchorExtractionExampleTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace SDK.Examples
[TestFixture()]
public class TextAnchorExtractionExampleTest
{
private double maxErrorAfterScaling = 0.75;
private double maxErrorAfterScaling = 0.25;

[Test()]
public void VerifyResult()
Expand Down
2 changes: 1 addition & 1 deletion src/Samples/Examples/TextAnchorExtractionExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void Main (string[] args)
}

public readonly string DOCUMENT_NAME = "Document With Anchors";
public readonly int FIELD_WIDTH = 150;
public readonly int FIELD_WIDTH = 151;
public readonly int FIELD_HEIGHT = 40;

override public void Execute()
Expand Down
5 changes: 0 additions & 5 deletions src/Samples/default.signers.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
#api.key=<Your APIKey>
#api.key.WithRolesAndPermission=<Your APIKey for Account With RolesAndPermission >

# Enable this for Client App API token authentication
#api.auth.type=APITOKEN
#api.clientId=
#api.secret=

# Enable this for oAuth2.0 authentication
api.auth.type=OAUTH
api.oauth.server.url=https://<oneSpanSignHost>/oauth2/token
Expand Down