ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Authorize user

  1. Verify the validity of access token

    1. Return 401 in case validation fails

  2. Check scopes in order to perform this action (scope = 'append_auth_method:write')

    1. Return 403 in case invalid scope(s)

Verification SMS

Verificate two sms - from person and from third_person.

Invoke verification module to verify OTP

OTP Verification

Update mpi

Add to table person_auth_methods row with type = third_person, value = id (confidant_person_id), alias (from payload), is_primary = False

Start date: start_date = Current_date()

End date:

if (person.age < 18) {  end_date = min(birth_date + 18y - 1d, start_date + third_person_term);} else {  end_date = start_date + third_person_term;}

  • No labels