A person can have an array of authentication methods.
To determine necessery the method of patient authentication, we select default auth method. If there is no active default, select the Aus method = OTPif person hasn’t active authentication_method - return NA.
If person has active auth_method.type = OTP - select it, if it is not - select active auth_method.type =OFFLINE. And if there is no OTP or OFFLINE, select the one that is of the active auth method with type = third_person where type = OTP and the last first one is added. If person hasn’t active authentication_method - Then the auth method isn’t found, select the first added active auth method.type =third person where third_person.auth_method.type = OFFLINE. If nothing is found, return NA.
View file | ||
---|---|---|
|
...