Skip to content

release/3.19.0#529

Closed
mehmet-yoti wants to merge 55 commits into
masterfrom
development
Closed

release/3.19.0#529
mehmet-yoti wants to merge 55 commits into
masterfrom
development

Conversation

@mehmet-yoti

Copy link
Copy Markdown
Contributor

Summary

Implements read-only support for the new SHARE_CODE resource type in IDV session data.

Share codes are managed server-side — this SDK change only provides read access to retrieve share code resources from existing sessions.

Usage Example

// Get session with share codes
GetSessionResult session = await docScanClient.GetSessionAsync(sessionId);

// Access share codes from resources
List<ShareCodeResourceResponse> shareCodes = session.Resources.ShareCodes;

foreach (var shareCode in shareCodes)
{
    Console.WriteLine($"Share Code ID: {shareCode.Id}");
    Console.WriteLine($"Source: {shareCode.Source}");
    Console.WriteLine($"Created: {shareCode.CreatedAt}");
    Console.WriteLine($"Last Updated: {shareCode.LastUpdated}");
    
    // Access media references
    if (shareCode.LookupProfile?.Media != null)
        Console.WriteLine($"Lookup Profile Media ID: {shareCode.LookupProfile.Media.Id}");
    
    if (shareCode.ReturnedProfile?.Media != null)
        Console.WriteLine($"Returned Profile Media ID: {shareCode.ReturnedProfile.Media.Id}");
    
    if (shareCode.IdPhoto?.Media != null)
        Console.WriteLine($"ID Photo Media ID: {shareCode.IdPhoto.Media.Id}");
    
    if (shareCode.File?.Media != null)
        Console.WriteLine($"File Media ID: {shareCode.File.Media.Id}");
    
    // Get verify share code tasks
    List<VerifyShareCodeTaskResponse> tasks = shareCode.GetVerifyShareCodeTasks();
    foreach (var task in tasks)
    {
        Console.WriteLine($"Task ID: {task.Id}, State: {task.State}");
    }
}

{
  "resources": {
    "share_codes": [
      {
        "id": "string",
        "source": "string",
        "created_at": "string",
        "last_updated": "string",
        "lookup_profile": { "media": { "id": "...", "type": "..." } },
        "returned_profile": { "media": { "id": "...", "type": "..." } },
        "id_photo": { "media": { "id": "...", "type": "..." } },
        "file": { "media": { "id": "...", "type": "..." } },
        "tasks": [
          {
            "type": "VERIFY_SHARE_CODE_TASK",
            "id": "string",
            "state": "string",
            "created": "string",
            "last_updated": "string",
            "generated_media": [{ "id": "...", "type": "..." }]
          }
        ]
      }
    ]
  }
}

Add applicant profile deserialization support for GET sessions response

Summary

This PR adds support for deserializing applicant_profiles from the GET /sessions response, allowing Relying Businesses to fetch applicant profile resources.

Changes

  • Added CreatedAt and LastUpdated properties to ApplicantProfileResourceResponse
  • Added unit tests for applicant profile deserialization
  • Updated DocScan example Success page to display ApplicantProfiles when present

Usage Example

GetSessionResult session = client.GetSession(sessionId);

if (session.Resources.ApplicantProfiles != null)
{
    foreach (var profile in session.Resources.ApplicantProfiles)
    {
        Console.WriteLine($"ID: {profile.Id}");
        Console.WriteLine($"Source: {profile.Source?.Type}");
        Console.WriteLine($"Created: {profile.CreatedAt}");
        Console.WriteLine($"Updated: {profile.LastUpdated}");
        Console.WriteLine($"Media ID: {profile.Media?.Id}");
    }
}

mehmet-yoti and others added 30 commits April 20, 2023 16:51
…e-identity-profile-preview-update

Sdk 2201 add support to fetch the identity profile preview update
* SDK-2252:added net create qr code
* SDK-2252:Updated validation rule
* SDK-2252:removed net 2.1 support for security issues
* SDK-2257:added net retrieve qr code
* SDK-2257:Updated GetQrCode Result
* SDK-2257:updated exception type
* SDK-2257 updated request types vars
* update versions
* Update README.md
* change support contact
* Update ISSUE_TEMPLATE.md
#458)

* SDK-2363 added check for optional attribute, updated tests
* SDK-2363 updated test scenarios to match new changes
Bumps [Google.Protobuf](https://github.com/protocolbuffers/protobuf) from 3.21.3 to 3.22.0.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](protocolbuffers/protobuf@v3.21.3...v3.22.0)

---
updated-dependencies:
- dependency-name: Google.Protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….Common and Microsoft.CodeAnalysis.CSharp (#460)

Bumps [Microsoft.CodeAnalysis.CSharp.Workspaces](https://github.com/dotnet/roslyn), [Microsoft.CodeAnalysis.Common](https://github.com/dotnet/roslyn) and [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn). These dependencies needed to be updated together.

Updates `Microsoft.CodeAnalysis.CSharp.Workspaces` from 4.2.0 to 4.9.2
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

Updates `Microsoft.CodeAnalysis.Common` from 4.2.0 to 4.9.2
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

Updates `Microsoft.CodeAnalysis.CSharp` from 4.2.0 to 4.9.2
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.CSharp.Workspaces
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Microsoft.CodeAnalysis.Common
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Microsoft.CodeAnalysis.CSharp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps Microsoft.VisualStudio.Azure.Containers.Tools.Targets from 1.16.1 to 1.20.1.

---
updated-dependencies:
- dependency-name: Microsoft.VisualStudio.Azure.Containers.Tools.Targets
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* SDK-2264:Added GetShareReceipt and CryptoEngine methods,added models,unit tests, example digitalidentity project, controllers
* SDK-2416 added support for advanced identity profile to share v2 (#461)
* SDK-2264 updated Newtonsoft.Json 13.0.3
* SDK-2416 updated json generation method
* SDK-2416 updated tests for  generation method
* SDK-2416: added examples for wanted attribute optional parameter
* SDK-2354 added error details and related tests
mehmet-yoti and others added 25 commits June 28, 2024 12:59
* SDK-2374 added failure reason info to idv and added tests
* update example session configurations
* IN5631 Updated to remove unsupported dotnet versions
* IN5631 Updated tests for dotnet version support
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ns response, and updated success page on docscan example
…file sessions (#526)

* Add applicant profile support for identity profile sessions with typed models and builders, tests
* SDK-2221 update test project to net 8 for compatibility
…pplicant-profile-from-get-sessions' into development

# Conflicts:
#	src/Yoti.Auth/DocScan/Session/Retrieve/Resource/ApplicantProfileResourceResponse.cs
…ources tasks (#525)

* SDK-2368: added advanced identity profiles for share1
* SDK-2368: removed unncessesary os files
* SDK-2368:updated test project sdk versions for security issues
* SDK-2368:added tests
* SDK-2753 added support for requesting and retrieving share code resource tasks
* SDK-2753 update test project to net 8 for compatibility
* merged with SDK-2368-net-add-support-for-advanced-identity-profiles-to-share-v-1-v-2-and-examples
* updated source as JSON object
* updated for error in tests
* fixed opencover version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants