Class IdProofingController
- Namespace
- SEBT.Portal.Api.Controllers.IdProofing
- Assembly
- SEBT.Portal.Api.dll
Controller for ID proofing and document verification flows. All endpoints require authentication.
[ApiController]
[Route("api/id-proofing")]
[Authorize]
[ServiceFilter(typeof(ResolveUserFilter))]
public class IdProofingController : ControllerBase
- Inheritance
-
objectControllerBaseIdProofingController
Methods
GetStatus(Guid, IQueryHandler<GetVerificationStatusQuery, VerificationStatusResponse>, CancellationToken)
Gets the current verification status for a challenge. Polled by the frontend with exponential backoff after document capture.
[HttpGet("status")]
[ProducesResponseType(typeof(VerificationStatusResponse), 200)]
[ProducesResponseType(401)]
[ProducesResponseType(404)]
public Task<IActionResult> GetStatus(Guid challengeId, IQueryHandler<GetVerificationStatusQuery, VerificationStatusResponse> handler, CancellationToken cancellationToken)
Parameters
challengeIdGuidThe challenge's public GUID.
handlerIQueryHandler<GetVerificationStatusQuery, VerificationStatusResponse>The query handler.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IActionResult>
Submit(SubmitIdProofingRequest, ICommandHandler<SubmitIdProofingCommand, SubmitIdProofingResponse>, CancellationToken)
Submits ID proofing data for risk assessment. Returns whether the user matched, needs document verification, or failed.
[HttpPost]
[ProducesResponseType(typeof(SubmitIdProofingResponse), 200)]
[ProducesResponseType(typeof(ErrorResponse), 400)]
[ProducesResponseType(401)]
[ProducesResponseType(typeof(ErrorResponse), 404)]
public Task<IActionResult> Submit(SubmitIdProofingRequest request, ICommandHandler<SubmitIdProofingCommand, SubmitIdProofingResponse> handler, CancellationToken cancellationToken)
Parameters
requestSubmitIdProofingRequesthandlerICommandHandler<SubmitIdProofingCommand, SubmitIdProofingResponse>cancellationTokenCancellationToken
Returns
- Task<IActionResult>