Hi Team,
After setting up AAC module we are facing issues in validating otp when two otps continuously generated.
Our implementation don't use user registry and calls the AAC runtime api to generate and verify as given below
OTP Generationhttps://192.168.200.194/mga/sps/apiauthsvc?PolicyId=urn:ibm:security:authentication:asf:spcpotpRequest body{
'abc':'xyz'
}
Response {
"mechanism": "urn:ibm:security:authentication:asf:mechanism:macotp",
"stateId": "fc97f4c4-2605-4421-ae48-0cea91988075",
"location": "/mga/sps/apiauthsvc?StateId=fc97f4c4-2605-4421-ae48-0cea91988075",
"otp.user.otp-hint": "6767-565920",
"otp.user.sentTo": "",
"mappingRuleData": ""
}
We got the otp, no issues, but if without validation generate the OTP again by just executing same API again, this time new otp will generated and new stateid will be generated
Now if we verify with old state id, then getting below error
{"exceptionMsg":"FBTAUT017E Authentication service received an invalid state ID [fc97f4c4-2605-4421-ae48-0cea91988075].","state":"","message":""}
Verificationhttps://192.168.200.194/mga/sps/apiauthsvc?StateId=fc97f4c4-2605-4421-ae48-0cea91988075Request Body{"otp.user.otp": "565920","otp.user.otp-hint": "6767","Submit":"Submit","operation":"verify"}
We generated 2 otps with two different stateids which we can see in HVDB, but issue is that when verifying first generated otp can not be verified, even in HVDB both OTPs with respective state ids are available.
Can someone guide us if we are missing any configuration? If HVDB has two records with two different state ids, and we are passing stateid while validating then it should validate OTP of given stateid, but ISAM is not doing it. Please let me know if anyone faces this issue?
Thanks,
------------------------------
Amitesh Singh
------------------------------