ЕСОЗ - публічна документація
Determine current authentication method
Purpose
This page determination logic for calculation current authentication method (in the declaration creation process) with considering input parameters:
- New or Existing MPI
- Current authentication method (from MPI)
- Requested authentication method (from Declaration_request)
Determination rules
MPI | Current method | Requested method | Result (return as CURRENT_METHOD) |
---|---|---|---|
New | <NULL> | OFFLINE | OFFLINE |
<NULL> | OTP | NA | |
Existing | OTP | OFFLINE | error("Person cannot set OFFLINE auth method if he had OTP") |
OTP | OTP | OTP | |
OFFLINE | OTP | OFFLINE | |
OFFLINE | OFFLINE | OFFLINE | |
NA | OTP | OTP | |
NA | OFFLINE | OFFLINE |
ЕСОЗ - публічна документація