v3.11.0
Profile
Demo available, when running the .NET Core example project, at https://localhost:44344/dbs-check
Added
WithIdentityProfileRequirements()toDynamicPolicyBuilderto specify Identity Profile Requirements:
DynamicPolicy dynamicPolicy = new DynamicPolicyBuilder()
.WithIdentityProfileRequirements(new {
trust_framework = "UK_TFIDA",
scheme = new
{
type = "DBS",
objective = "STANDARD"
}
}).Build();WithSubject()toDynamicScenarioBuilderto specifysubject_idwhen used withWithIdentityProfileRequirements():
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.IdentityProfileReportGetId()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(useprofile.AttributeCollectioninstead)
IDV
Added
- Ability to specify Identity Profile Requirements and subject_id using
WithIdentityProfileRequirements()andWithSubject()onSessionSpecificationBuilder:
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);