Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.9.0 #445

Merged
merged 62 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
952598f
Merge pull request #419 from getyoti/master
irotech Oct 12, 2023
66e28ff
DEVELOPMENT: Set version to 3.9.0-SNAPSHOT
irotech Oct 12, 2023
9d4276e
Update dependabot reviewers and assignees
irotech Oct 12, 2023
915cf16
Update sonar java version (11 → 17)
irotech Oct 12, 2023
5aacc5b
Merge pull request #420 from getyoti/DEV_set_new_version
irotech Oct 12, 2023
81f94dd
N/A: Drop maven plugins default groupId
irotech Oct 20, 2023
5ba70b4
N/A: Define minimum Maven version required for build
irotech Oct 24, 2023
87d2e9f
Bump maven-enforcer-plugin version (3.3.0 → 3.4.1)
irotech Oct 24, 2023
6e9f36b
Bump spotbugs-maven-plugin version (4.7.3.4 → 4.7.3.6)
irotech Oct 24, 2023
3d155c3
Bump maven-javadoc-plugin version (3.5.0 → 3.6.0)
irotech Oct 24, 2023
d9105c1
Bump maven-project-info-reports-plugin version (3.4.3 → 3.4.5)
irotech Oct 24, 2023
2623988
Bump maven-source-plugin version (3.2.1 → 3.3.0)
irotech Oct 24, 2023
0c88b07
Bump jacoco-maven-plugin version (0.8.10 → 0.8.11)
irotech Oct 24, 2023
46bea1e
Bump properties-maven-plugin version (1.1.0 → 1.2.0)
irotech Oct 24, 2023
7e0935d
Bump dependency-check-maven version (8.4.0 → 8.4.2)
irotech Oct 24, 2023
454409b
Set maven-compiler-plugin version to 3.11.0
irotech Oct 24, 2023
6972710
Bump spring-boot-dependencies version (2.7.16 → 2.7.17)
irotech Oct 24, 2023
c7f8aa7
Bump jackson version (2.15.2 → 2.15.3)
irotech Oct 24, 2023
607a9e0
SDK-2352: Add error reason to shave v1 failure response
irotech Oct 25, 2023
56348ea
SDK-2352: Add error reason to shave v2 failure response
irotech Oct 25, 2023
8cce312
SDK-2352: Add share error reason to example module
irotech Oct 25, 2023
a15beab
Merge pull request #421 from getyoti/SDK-2352_error_reason
irotech Oct 31, 2023
bd4dfcb
SDK-2372: Add RequirementsNotMetDetailsResponse to IdentityProfileFai…
MrBurtyyy Dec 8, 2023
4f7eaf4
SDK-2372: Set requirementsNotMetDetails to be a List instead of a sin…
MrBurtyyy Dec 8, 2023
fa27758
SDK-2372: Fix @JsonProperty name for RequirementsNotMetDetails
MrBurtyyy Dec 8, 2023
fc46c63
SDK-2372: Set property name to match JSON property name for requireme…
MrBurtyyy Dec 11, 2023
0193749
Bump spring-boot-starter-parent version (2.7.17 → 2.7.18)
irotech Mar 8, 2024
9228b49
Bump spring-boot-dependencies version (2.7.17 → 2.7.18)
irotech Mar 8, 2024
160975d
Bump guava version (32.1.1-jre → 33.0.0-jre)
irotech Mar 8, 2024
8944dbe
Bump jackson version (2.15.3 → 2.16.1)
irotech Mar 8, 2024
3d02561
Bump protobuf-java version (3.24.4 → 3.25.3)
irotech Mar 8, 2024
ec33938
Bump spotbugs version (4.7.3 → 4.8.3)
irotech Mar 8, 2024
8793bd4
Bump spotbugs-maven-plugin version (4.7.3.6 → 4.8.3.1)
irotech Mar 8, 2024
6d1a969
Bump findsecbugs-plugin version (1.12.0 → 1.13.0)
irotech Mar 8, 2024
89cea12
Bump dependency-check-maven version (8.4.2 → 8.4.3)
irotech Mar 8, 2024
9b853d3
Bump maven-javadoc-plugin version (3.6.0 → 3.6.3)
irotech Mar 8, 2024
c26db0d
Bump maven-project-info-reports-plugin version (3.4.5 → 3.5.0)
irotech Mar 8, 2024
a73cffb
Bump Git actions/checkout version (2 → 4)
irotech Mar 11, 2024
d5336a2
Bump Git actions/setup-java version (1 → 4)
irotech Mar 11, 2024
5362fde
Merge pull request #434 from getyoti/versions_bump
irotech Mar 11, 2024
312050e
Bump Git actions/checkout version (2 → 4)
irotech Mar 11, 2024
5cd4054
Bump Git actions/setup-java version (1 → 4)
irotech Mar 11, 2024
d7ed454
Merge pull request #435 from getyoti/version_bumps
irotech Mar 11, 2024
f26ddde
SDK-2431: Drop null check for optional receipt properties
irotech Mar 13, 2024
7263b4b
NA: Align terminology from receipt
irotech Mar 13, 2024
5356075
Merge pull request #437 from getyoti/SDK-2431_null-check-optinal-rece…
irotech Mar 14, 2024
2053cf7
SDK-2364: Drop deprecated com.yoti.api.client.spi.remote.util.Validation
irotech Mar 15, 2024
08830b6
SDK-2364: Map attribute alternative names in v1 policy
irotech Mar 15, 2024
aab1814
SDK-2364: Map attribute alternative names in v2 policy
irotech Mar 15, 2024
78d522f
Merge pull request #438 from getyoti/SDK-2364_add_optional_attribute_…
irotech Mar 15, 2024
8d23e10
SDK-2367: Add support for advanced identity profiles to Share V1
irotech Mar 18, 2024
179eeb2
SDK-22418: Add support for advanced identity profiles to Share V2
irotech Mar 19, 2024
48c1948
Merge pull request #439 from getyoti/SDK-2367_advanced_Id_profile_v1
irotech Mar 19, 2024
5c65793
Bump org.codehaus.mojo:properties-maven-plugin from 1.2.0 to 1.2.1
dependabot[bot] Mar 19, 2024
c4f457a
Merge pull request #424 from getyoti/dependabot/maven/DEVELOPMENT/org…
irotech Mar 19, 2024
c22618e
SDK-2428: Create config.yml
nikhilPank Feb 20, 2024
3288952
SDK-2428: Delete .github/ISSUE_TEMPLATE.md
nikhilPank Feb 20, 2024
803dcb3
Merge pull request #433 from getyoti/SDK-2428-Update-Issue-Template
nikhilPank Mar 19, 2024
3827b22
SDK-2384: Adjust defaults for example project
nikhilPank Oct 25, 2023
9f02213
Merge pull request #422 from getyoti/IN5631
nikhilPank Apr 24, 2024
74be453
SDK-2448: Add support for requesting, and fetching advanced identity …
MrBurtyyy May 17, 2024
14cf38d
Release 3.9.0: Set version for release
MrBurtyyy Jun 19, 2024
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
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Yoti Support
url: https://support.yoti.com/yotisupport/s/contactsupport
about: Please send your questions or issues here.
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ updates:
reviewers:
- bucky-boy
- MrBurtyyy
- psmelia
- pn-santos
- irotech
assignees:
- MrBurtyyy
- irotech
5 changes: 3 additions & 2 deletions .github/workflows/junit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
jdk-version: [8,11,17]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Java ${{ matrix.jdk-version }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.jdk-version }}
architecture: x64
- run: mvn test -B -pl yoti-sdk-api -Ddependency-check.skip=true
11 changes: 6 additions & 5 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up Java 11
uses: actions/setup-java@v1
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
java-version: 17
architecture: x64
- name: Scan SDK
run: mvn -B clean install sonar:sonar -Ddependency-check.skip=true -Dgpg.skip=true -Dfindbugs.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ If you are using Maven, you need to add the following dependency:
<dependency>
<groupId>com.yoti</groupId>
<artifactId>yoti-sdk-api</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
```

If you are using Gradle, here is the dependency to add:

`compile group: 'com.yoti', name: 'yoti-sdk-api', version: '3.8.0'`
`compile group: 'com.yoti', name: 'yoti-sdk-api', version: '3.9.0'`

You will find all classes packaged under `com.yoti.api`

Expand Down
4 changes: 2 additions & 2 deletions examples/doc-scan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.16</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -53,7 +53,7 @@
<dependency>
<groupId>com.yoti</groupId>
<artifactId>yoti-sdk-api</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public CreateSessionResult createSession() throws DocScanException {

SessionSpec sessionSpec = SessionSpec.builder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
.withResourcesTtl(604800)
.withUserTrackingId("some-user-tracking-id")
.withSdkConfig(sdkConfig)
.withRequestedCheck(
Expand All @@ -69,13 +69,13 @@ public CreateSessionResult createSession() throws DocScanException {
)
.withRequestedCheck(
RequestedFaceMatchCheck.builder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequestedCheck(
RequestedLivenessCheck.builder()
.forZoomLiveness()
.withMaxRetries(1)
.forStaticLiveness()
.withMaxRetries(3)
.build()
)
.withRequestedCheck(
Expand All @@ -97,12 +97,12 @@ public CreateSessionResult createSession() throws DocScanException {
)
.withRequestedTask(
RequestedIdDocTextExtractionTask.builder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequestedTask(
RequestedSupplementaryDocTextExtractionTask.builder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequiredDocument(
Expand Down
86 changes: 86 additions & 0 deletions examples/doc-scan/src/main/resources/templates/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,92 @@ <h2>Import Token</h2>
</div>
</th:block>

<th:block th:if="${sessionResult.getIdentityProfile() != null}">
<div class="row pt-4">
<div class="col">
<h2>Identity Profile</h2>
</div>
</div>

<!-- Identity Profile Failure Reason -->
<th:block th:if="${sessionResult.getIdentityProfile().getFailureReason() != null}">
<div class="row pt-4">
<div class="col">
<div class="accordion mt-3">
<div class="card" th:if="${sessionResult.getIdentityProfile().getFailureReason() != null}">
Failure Reason: <span th:text="${sessionResult.getIdentityProfile().getFailureReason().getReasonCode()}"></span>
<th:block th:if="${!sessionResult.getIdentityProfile().getFailureReason().getRequirementNotMetDetails().isEmpty()}">
<div th:each="requirementsNotMetDetails : ${sessionResult.getIdentityProfile().getFailureReason().getRequirementNotMetDetails()}">
<span th:if="${requirementsNotMetDetails.getFailureType() != null}">Failure Type: <span th:text="${requirementsNotMetDetails.getFailureType()}"></span></span>
<span th:if="${requirementsNotMetDetails.getDocumentType() != null}">Document Type: <span th:text="${requirementsNotMetDetails.getDocumentType()}"></span></span>
<span th:if="${requirementsNotMetDetails.getDocumentCountryIsoCode() != null}">Document Country ISO Code: <span th:text="${requirementsNotMetDetails.getDocumentCountryIsoCode()}"></span></span>
<span th:if="${requirementsNotMetDetails.getAuditId() != null}">Audit ID: <span th:text="${requirementsNotMetDetails.getAuditId()}"></span></span>
<span th:if="${requirementsNotMetDetails.getDetails() != null}">Details: <span th:text="${requirementsNotMetDetails.getDetails()}"></span></span>
</div>
</th:block>
</div>
</div>
</div>
</div>
</th:block>

</th:block>

<th:block th:if="${sessionResult.getAdvancedIdentityProfile() != null}">
<div class="row pt-4">
<div class="col">
<h2>
<span th:remove="tag">Advanced Identity Profile</span>
<span class="badge badge-primary" th:text="${sessionResult.getAdvancedIdentityProfile().getResult()}"></span>
<span class="badge badge-warning" th:if="${sessionResult.getAdvancedIdentityProfile().getFailureReason() != null}" th:text="${sessionResult.getAdvancedIdentityProfile().getFailureReason().getReasonCode()}"></span>
</h2>
</div>
</div>

<div class="row pt-4">
<div class="col">
<th:block th:if="${sessionResult.getAdvancedIdentityProfile().getSubjectId() != null}">
<span>Subject ID: <span th:text="${sessionResult.getAdvancedIdentityProfile().getSubjectId()}"/></span>
</th:block>
</div>
</div>

<th:block th:if="${sessionResult.getAdvancedIdentityProfile().getIdentityProfileReport() != null}">
<div th:if="${sessionResult.getAdvancedIdentityProfile().getIdentityProfileReport().getMedia() != null}">
Generated Profile Media: <a th:href="${'/media?mediaId=' + sessionResult.getAdvancedIdentityProfile().getIdentityProfileReport().getMedia().getId()}"
th:text="${sessionResult.getAdvancedIdentityProfile().getIdentityProfileReport().getMedia().getId()}">
</a>
</div>

<div class="accordion mt-3">
<th:block th:each="compliance, iter : ${sessionResult.getAdvancedIdentityProfile().getIdentityProfileReport().getCompliance()}">
<div class="card-header" th:id="${'advanced-identity-profile-compliance-' + iter.index}">
<h4 class="mb-0">
<button class="btn btn-link" type="button" data-toggle="collapse"
th:attr="data-target='#collapse-advanced-identity-profile-compliance-' + ${iter.index}"
th:attrappend="aria-controls='collapse-advanced-identity-profile-compliance-' + ${iter.index}"
th:text="${compliance.getTrustFramework()}"
aria-expanded="true">
</button>
</h4>
</div>
<div th:id="${'collapse-advanced-identity-profile-compliance-' + iter.index}" class="collapse"
th:aria-labelledby="${'advanced-identity-profile-compliance-' + iter.index}">
<div class="card-body"></div>
<div class="card-body" th:each="scheme : ${compliance.getSchemesCompliance()}">

<span><b>Type: </b></span><span th:text="${scheme.getScheme().getType()}"></span><br/>
<span><b>Objective: </b></span><span th:text="${scheme.getScheme().getObjective()}"></span><br/>
<span><b>Label: </b></span><span th:text="${scheme.getScheme().getLabel()}"></span><br/>
<span><b>Requirements Met: </b></span><span th:text="${scheme.getRequirementsMet()}"></span><br/>
<span><b>Requirements Not Met Info: </b></span><span th:text="${scheme.getRequirementsNotMetInfo()}"></span><br/>
</div>
</div>
</th:block>
</div>
</th:block>
</th:block>

</div>

<div th:replace="fragments/components :: footer"></div>
Expand Down
65 changes: 60 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.yoti</groupId>
<artifactId>yoti-sdk</artifactId>
<packaging>pom</packaging>
<version>3.8.0</version>
<version>3.9.0</version>
<name>Yoti SDK</name>
<description>Java SDK for simple integration with the Yoti platform</description>
<url>https://github.com/getyoti/yoti-java-sdk</url>
Expand All @@ -20,17 +20,68 @@
</modules>

<properties>
<supported.java.version>1.8</supported.java.version>

<maven.min.version>3.8.5</maven.min.version>

<!-- plugin versions -->
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
<properties-maven-plugin.version>1.1.0</properties-maven-plugin.version>
<spotbugs-maven-plugin.version>4.7.3.4</spotbugs-maven-plugin.version>
<properties-maven-plugin.version>1.2.1</properties-maven-plugin.version>
<spotbugs-maven-plugin.version>4.8.3.1</spotbugs-maven-plugin.version>
<maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
<extra-enforcer-rules.version>1.7.0</extra-enforcer-rules.version>
</properties>

<build>
<plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce-bytecode-version</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>verify</phase>
<configuration>
<rules>
<enforceBytecodeVersion>
<maxJdkVersion>${supported.java.version}</maxJdkVersion>
</enforceBytecodeVersion>
</rules>
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>enforce-dependency-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<dependencyConvergence/>
<requireMavenVersion>
<version>${maven.min.version}</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>${extra-enforcer-rules.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
Expand Down Expand Up @@ -62,6 +113,10 @@
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin.version}</version>
</plugin>

<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
6 changes: 1 addition & 5 deletions yoti-sdk-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.yoti</groupId>
<artifactId>yoti-sdk-parent</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
<relativePath>../yoti-sdk-parent</relativePath>
</parent>

Expand Down Expand Up @@ -87,19 +87,16 @@
<artifactId>animal-sniffer-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
Expand All @@ -121,7 +118,6 @@
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions yoti-sdk-api/spotbugs/exclude-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<Bug pattern="CRLF_INJECTION_LOGS"/>
</Match>

<Match>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</Match>

<Match>
<Class name="com.yoti.api.client.spi.remote.call.SignedRequest"/>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
Expand Down
Loading