Two Factor Authentication
George Mikhailovsky
Posts: 5
George Mikhailovsky replied the code: Two Factor Authentication
Bruce, I confirm that QR identification works fine for me in both PB2019/PS2020 and PB2021/PS2021 environments. Thanks, George
Please Log in or Create an account to join the conversation.
VINOD NAIR
Posts: 2
VINOD NAIR replied the code: Two Factor Authentication
Hi Bruce,
We were able to make it work in PS 2020. The issue was related to the Encode function and not related to the QR Code. We created a DLL to encompass Encode function and call it from Powerbuilder and it resolved our issues on web. This was suggested to us by Appeon ....see below
For base32 encoding, please package it as DLL according to the source code online and then call it in PB. It should work on web too. Please refer to the
article below for details.
gist.github.com/BravoTango86/2a085185c3b9bd8383a1f956600e515f
social.msdn.microsoft.com/Forums/en-US/d...-code?forum=netfxbcl
We were able to make it work in PS 2020. The issue was related to the Encode function and not related to the QR Code. We created a DLL to encompass Encode function and call it from Powerbuilder and it resolved our issues on web. This was suggested to us by Appeon ....see below
For base32 encoding, please package it as DLL according to the source code online and then call it in PB. It should work on web too. Please refer to the
article below for details.
gist.github.com/BravoTango86/2a085185c3b9bd8383a1f956600e515f
social.msdn.microsoft.com/Forums/en-US/d...-code?forum=netfxbcl
Please Log in or Create an account to join the conversation.
Bruce Armstrong
CODE AUTHOR
Posts: 55
Bruce Armstrong replied the code: Two Factor Authentication
I just tried it with PowerServer 2021 and it worked fine. Of course, that one doesn't attempt to generate a web application. I really can't speak to how it works with PowerServer 2020.
Please Log in or Create an account to join the conversation.
VINOD NAIR
Posts: 2
VINOD NAIR replied the code: Two Factor Authentication
Hi Bruce,
I downloaded this sample and implemented in client-server without any issues using PB 2019 R2. But when we build this into web and deploy it on PowerServer 2020 and try to scan the QR code we get the following error "Error: Key not recognized". We tried to increase the width of the picture object but don't think that is an issue. Does this work on Appeon PowerServer 2020 because to us we think the QR code image might be getting messed on the web. Do you know what we could try to fix it?
I downloaded this sample and implemented in client-server without any issues using PB 2019 R2. But when we build this into web and deploy it on PowerServer 2020 and try to scan the QR code we get the following error "Error: Key not recognized". We tried to increase the width of the picture object but don't think that is an issue. Does this work on Appeon PowerServer 2020 because to us we think the QR code image might be getting messed on the web. Do you know what we could try to fix it?
Please Log in or Create an account to join the conversation.