I need to incorporate Two Factor Authentication (2FA) into my PowerBuilder 2019 R2 application and I used for this twofactorauth.pbl created by Bruce Armstrong that I found in Appeon community.
The objects from this PBL works fine in C/S version of the application but when I deployed it as web application (locally to the same server with IIS that has PowerServer 2020), the returned token became “000000”. Then, according advice by Bruce Armstrong, I found in “Two Factor Authentication using PowerBuilder tutorial in Articles & Blogs of Appeon Community” a workaround to solve this problem by using of_copylongtobytes() and of_blob() functions instead of CopyLongToBytes() and Blob(). I created these new functions and replaced the old ones with them. After this, the returned token in both C/S and web applications became a random 6-digits number instead of ‘000000’. However, this token never matches the token in DuoMobile on my iPhone. At the same time, these tokens in the C / S version of the same application (with the old CopyLongToBytes () and Blob () functions) always match.
I would really appreciate it if you could help me solve this problem.
My best regards,
George Mikhailovsky