iES bio authentication registration/deregistration
This page explains bio authentication in iES.
Basically, iES bio authentication registration takes place in the same way as the authentication process.
- Request authentication and open the pinpad
- Wait until the push is received
- Proceed with decryption when the push is received
- Have the password entered
- Have the biometric information entered
- Proceed with the bio authentication registration
Bio authentication registration
- Request a push for authentication.
- The server sends the information required for authentication in a push notification based on the request information.
// 바이오 설정을 위한 푸쉬 api 호출
NSString *usedType = PAD_USEDTYPE_BIO_AUTH_SET;
//버튼의 현재상태 확인
if(btn.isSelected == NO)
{
usedType = PAD_USEDTYPE_BIO_AUTH_SET; // 등록
}
else
{
usedType = PAD_USEDTYPE_BIO_AUTH_DEL; //해제
}
NSString *cusID = [[PASSIPADManager shared] getCusID];
[[PASSIPADManager shared] reqAuthEx:cusID withAuthType:usedType withCompletion:^(PASSIPADResult *result) {
if( [result.code isEqualToString:@"0000"] )
{
// 핀패드 활성화
[self showPinPad:CertMode];
self.btBioSet.selected = ! self.btBioSet.selected;
[self buttonStateChange];
}
else
{
// 에러 메시지
}
}];
The signData parameter is a value added during the electronic signature process. Add the content to the electronic signature in the string format.
The used_type
parameter refers to the type used. To register for bio authentication, send the used_type as 8.
Used Type | Code |
---|---|
Log In | 2 |
Change Password | 4 |
Deregistration | 5 |
Push Token Update | 6 |
Registration for Bio Authentication | 8 |
Bio Authentication | 9 |
Deregistration for Bio Authentication | 10 |
NSString *cusID = [[PASSIPADManager shared] getCusID];
[[PASSIPADManager shared] reqAuthPinPadEx:pw withCusID:cusID withCompletion:^(PASSIPADResult * _Nonnull result) {
if( [result.code isEqualToString:@"0000"] )
{
if( [result.usedType isEqualToString:PAD_USEDTYPE_LOGIN] ||
[result.usedType isEqualToString:PAD_USEDTYPE_BIO_AUTH] ||
[result.usedType isEqualToString:PAD_USEDTYPE_AUTH] ||
[result.usedType isEqualToString:PAD_USEDTYPE_TEMINATE] )
{
...
}
else if( [result.usedType isEqualToString:PAD_USEDTYPE_BIO_AUTH_SET])
{
//생체인증 등록 처리
}
else if( [result.usedType isEqualToString:PAD_USEDTYPE_BIO_AUTH_DEL] )
{
//생체인증 해제 처리
}
}];