-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-2365 Support Advanced Identity Profile (#436)
* SDK-2366 Advanced Identity Profile in share v1 (#434) Modified src/dynamic_sharing_service: - added to DynamicPolicyBuilder the method .withAdvancedIdentityProfileRequirements() - updated DynamicPolicy constructor to accept an additional parameter (advancedIdentityProfileRequirements) and to include it in the payload as 'advanced_identity_profile_requirements'. Updated examples/profile-identity-checks: - added an new case to demo the advanced identity profile requirements - added extraction/display of 'verification_reports' and 'authentication_reports' * SDK-2417 Advanced Identity Profile share v2 (#438) Add advanced identity profile. Updated digital identity examples to add withAdvancedIdentityProfileRequirements Updated examples "digital-identity" to include and display the Advanced Identity Profile.
- Loading branch information
1 parent
16b9269
commit 05e16e1
Showing
19 changed files
with
819 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,38 +15,79 @@ | |
<div class="yoti-logo-section"> | ||
<a href="/"> | ||
<img class="yoti-logo-image" | ||
src="/static/assets/logo.png" | ||
srcset="/static/assets/[email protected] 2x" | ||
alt="Yoti"/> | ||
src="/static/assets/logo.png" | ||
srcset="/static/assets/[email protected] 2x" | ||
alt="Yoti"/> | ||
</a> | ||
</div> | ||
</section> | ||
|
||
<section class="yoti-report-section"> | ||
<h1 class="yoti-main-title">Identity profile report</h1> | ||
<div> | ||
<h4>Identity assertion:</h4> | ||
<pre><%= JSON.stringify(identityAssertion, null, 2) %></pre> | ||
</div> | ||
<div> | ||
<h4>Verification report:</h4> | ||
<pre><%= JSON.stringify(verificationReport, null, 2) %></pre> | ||
</div> | ||
<div> | ||
<h4>Authentication report:</h4> | ||
<pre><%= JSON.stringify(authenticationReport, null, 2) %></pre> | ||
</div> | ||
<div> | ||
<h4>Documents images attributes:</h4> | ||
<% documentImagesAttributes.forEach((docImgAttr) => { %> | ||
<span>Document image ID: </span> | ||
<span><%= docImgAttr.getId() %></span> | ||
<br> | ||
<br> | ||
<% docImgAttr.getValue().forEach((image) => { %> | ||
<img src="<%= image.getBase64Content() %>" alt="Document image"/> | ||
<% }) %> | ||
<% }) %> | ||
<section> | ||
<div class="yoti-report-section"> | ||
<% if (identityAssertion ) { %> | ||
<div> | ||
<h4>Identity assertion:</h4> | ||
<pre><%= JSON.stringify(identityAssertion, null, 2) %></pre> | ||
</div> | ||
<% } %> | ||
<% if (verificationReport ) { %> | ||
<div> | ||
<h4>Verification report:</h4> | ||
<pre><%= JSON.stringify(verificationReport, null, 2) %></pre> | ||
</div> | ||
<% } %> | ||
<% if (authenticationReport ) { %> | ||
<div> | ||
<h4>Authentication report:</h4> | ||
<pre><%= JSON.stringify(authenticationReport, null, 2) %></pre> | ||
</div> | ||
<% } %> | ||
<% if (verificationReports && verificationReports.length !== 0 ) { %> | ||
<div> | ||
<h4>Verification reports:</h4> | ||
<pre><%= JSON.stringify(verificationReports, null, 2) %></pre> | ||
</div> | ||
<% } %> | ||
<% if (authenticationReports && authenticationReports.length !== 0 ) { %> | ||
<div> | ||
<h4>Authentication reports:</h4> | ||
<pre><%= JSON.stringify(authenticationReports, null, 2) %></pre> | ||
</div> | ||
<% } %> | ||
<% if (identityAssertionProof ) { %> | ||
<div> | ||
<h4>Proof:</h4> | ||
<pre><%= JSON.stringify(identityAssertionProof, null, 2) %></pre> | ||
</div> | ||
<% } %> | ||
<% if (documentImagesAttributes && documentImagesAttributes.length !== 0 ) { %> | ||
<div> | ||
<h4>Documents images attributes:</h4> | ||
<% documentImagesAttributes.forEach((docImgAttr) => { %> | ||
<span>Document image ID: </span> | ||
<span><%= docImgAttr.getId() %></span> | ||
<br> | ||
<br> | ||
<% docImgAttr.getValue().forEach((image) => { %> | ||
<img src="<%= image.getBase64Content() %>" alt="Document image"/> | ||
<% }) %> | ||
<br> | ||
<br> | ||
<% }) %> | ||
</div> | ||
<% } %> | ||
<% if (selfieAttribute ) { %> | ||
<div> | ||
<h4>Selfie:</h4> | ||
<span>Selfie ID: </span> | ||
<span><%= selfieAttribute.getId() %></span> | ||
<br> | ||
<br> | ||
<img src="<%= selfieAttribute.getValue().getBase64Content() %>" alt="Selfie"/> | ||
<br> | ||
<br> | ||
</div> | ||
<% } %> | ||
</div> | ||
</section> | ||
</main> | ||
|
Oops, something went wrong.