Skip to content

v3.11.0

Choose a tag to compare

@BenSmithYoti BenSmithYoti released this 03 May 10:41
· 139 commits to master since this release
1ad9575

Profile

Demo available, when running the .NET Core example project, at https://localhost:44344/dbs-check

Added

  • WithIdentityProfileRequirements() to DynamicPolicyBuilder to specify Identity Profile Requirements:
DynamicPolicy dynamicPolicy = new DynamicPolicyBuilder()
.WithIdentityProfileRequirements(new { 
	trust_framework = "UK_TFIDA",
	scheme = new
	{
		type = "DBS",
		objective = "STANDARD"
	}
}).Build();
  • WithSubject() to DynamicScenarioBuilder to specify subject_id when used with WithIdentityProfileRequirements():
DynamicScenario dynamicScenario = new DynamicScenarioBuilder()
.WithPolicy(dynamicPolicy)
.WithSubject(new {
	subject_id = "some_subject_id_string"
})
.Build();
  • Identity Profile Report attribute (JSON):
YotiAttribute<Dictionary<string, JToken>> identityProfileReport = profile.IdentityProfileReport
  • GetId() to Yoti attribute:
attribute.GetId();
  • GetAttributeById() to Yoti profile:
var selfie = profile.GetAttributeById<Yoti.Auth.Images.Image>("attribute_id");
var documentImages = profile.GetAttributeById<List<Yoti.Auth.Images.Image>>("attribute_id_2");

Removed

  • .NET 4.7 Example Project (.NET Core example still available)

Deprecated

  • profile.Attributes (use profile.AttributeCollection instead)

IDV

Added

  • Ability to specify Identity Profile Requirements and subject_id using WithIdentityProfileRequirements() and WithSubject() on SessionSpecificationBuilder:
SessionSpecification sessionSpec = new SessionSpecificationBuilder()
.WithIdentityProfileRequirements(new { 
	trust_framework = "UK_TFIDA",
	scheme = new
	{
		type = "DBS",
		objective = "STANDARD"
	}
})
.WithSubject(new {
	subject_id = "some_subject_id_string"
})
.Build();
  • IDV GetSessionResult:
    • Third Party Identity Fraud (One) Checks:
var checks = getSessionResult.GetThirdPartyIdentityFraudOneChecks();
  • IdentityProfile:
IdentityProfileResponse identityProfile = getSessionResult.IdentityProfile;
string subjectId = identityProfile.SubjectId;
string result = identityProfile.Result;
string failureReasonCode = identityProfile.FailureReason.ReasonCode;

MediaID can be retrieved with:

string mediaId = getSessionResult.IdentityProfile.Report["media"]["id"].ToString();

and used to retrieve the full identity profile report as JSON with a separate call:

MediaValue mediaValue = docScanClient.GetMediaContent("your-session-id", mediaId);