Conversation
…y Profile requirements
…y Profile subject
…re any authentication
…thentication tokens via API
…e from auth service
…in requests, instead of signed requests
…eCode response classes
|
There was a problem hiding this comment.
Pull request overview
This is a major version release (4.0.0) of the Yoti Java SDK that introduces support for authentication tokens as an alternative to signed requests, strongly typed Identity Profile requirements, and exposes additional API properties. The PR includes significant internal refactoring to support multiple authentication strategies while maintaining the existing signed request functionality.
Changes:
- Introduced new
yoti-sdk-authmodule for generating Yoti Authentication tokens - Refactored authentication to use strategy pattern with
AuthStrategyinterface - Changed Identity Profile requirements from
Map<String, Object>to strongly typed classes - Made several constructors private that were incorrectly public (with builders available)
- Added support for ShareCode resources and exposed additional properties (
capture_type,process)
Reviewed changes
Copilot reviewed 153 out of 154 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml files | Updated version from 3.12.0 to 4.0.0 across all modules |
| yoti-sdk-auth/* | New module for authentication token generation |
| AuthStrategy classes | New authentication strategy pattern implementation |
| YotiHttpRequest/Builder | Refactored from SignedRequest to support multiple auth strategies |
| DocScanClient/YotiClient | Updated to use AuthStrategy instead of direct KeyPair usage |
| Identity Profile classes | New strongly typed payload classes for Identity Profile requirements |
| Session/Resource classes | Added ShareCode support and new properties |
| Test files | Updated tests to use new authentication patterns |
| Documentation | Updated version references and breaking change notes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Changes
Breaking Changes
Map<String, Object>, you will now need to use theIdentityProfileRequirementsPayloadand associated buillder class (accessible viaIdentityProfileRequirementsPayload.builder()Added
yoti-sdk-authmodule is available for API generation of authentication tokens, which can be used as a replacement for Yoti Signed RequestsDocScanClient.Buildercan now be configured to be used with an authentication token, rather than a PEM file.ShareCodeResourceas part of a sessionGetSessionResultalong with their associated media and tasks.capture_typeproperty is now exposed forStaticLivenessResourceResponseprocessproperty is now exposed for breakdowns on theBreakdownResponseclass