authorize Candidates
Authorize a list of candidates.
The call completes with a per-candidate outcome list (see SdkSuccessAnswer.AuthorizeCandidates): CandidateAuthResult.Status.AUTHORIZED, CandidateAuthResult.Status.REQUIRES_TWO_FA (the required next step is confirming the 2FA code) or CandidateAuthResult.Status.FAILED with the failure reason. Candidates are identified by SDKCandidate.identityHash; partial success is expressed as a mixed list. Structural or field-level validation violations (empty list, more than one acquiring or fiscal candidate, blank identityHash, duplicate QR provider types, missing required schema fields) are reported as Result.ValidationErrors — no candidate is authorized in that case.
2FA confirmation for a candidate is performed by calling this method again with the same candidate and a non-blank "twoFaCode" value in SDKCandidate.options: the candidate is then confirmed instead of re-logged in. A wrong code (or a missing prior login, or a transport failure) is reported as CandidateAuthResult.Status.REQUIRES_TWO_FA with the server error message — re-enter the code and repeat the call; CandidateAuthResult.Status.FAILED means the flow must be restarted with a fresh call without the code. When the host reports where the code was sent, CandidateAuthResult.errorMessage hints at the destination; after a rejected confirmation attempt it carries the server error text instead.
Return
Result.Success with per-candidate SdkSuccessAnswer.AuthorizeCandidates.results when the call completes, or Result.Error for operational failures.
Parameters
list of candidates to authorize.