Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Fiend value is person.id

  • validate person_.id UUID

    • in case error return 422

  • search person by person_.id in MPI 

    • in case error return 422, "Such person doesn't exist"

Validate

Use GET persom/{id}/ authentication_method to find authentication method' id of person

  1. if action = delete

    1. Field type must be third_person. (where person_auth_method.id = $aythentication_method.id)

    2. If person < 14, validate that count(auth_method, where person.auth_methods.person_id = $.person_id) >=1

    3. If delete auth_method where field is_primary = True, then the method that was last added has a flag is_primary = True

  2. if action = insert

    1. if type = OTP or OFFLINE, person’s auth method that was before (off or offline) becomes inactive

  3. if action = update

    1. if the transferred method is the main one (is_primary = TRUE), method that had this flag is_primary = TRUE now has is_primary = FALSE

Generate verification code

...