Two Factor Authentication

Bruce Armstrong
CODE AUTHOR
Posts: 58
 1 year 1 month ago #541 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication
I later updated the sample to work with the CoderObject that was introduced in PowerBuilder 2019. Specifically, the base32encode method was added to that object in 2019R2.

You would either need to upgrade to at least PowerBuilder 2019 R2, or manually replace the call to that method with the PowerScript 32 bit encoding method that I posted in the original article.

Please Log in or Create an account to join the conversation.

Panos Platanas
Posts: 2
 1 year 1 month ago -  1 year 1 month ago #540 by Panos Platanas
Panos Platanas replied the code: Two Factor Authentication
Thank you Bruce!
I am trying to run this on PB2017R3 but build fails:
Uknown function name base32encode

What should I check?

Thanx!

Last Edit: 1 year 1 month ago by  Panos Platanas

Please Log in or Create an account to join the conversation.

Rob Stevens
Posts: 2
 1 year 4 months ago #529 by Rob Stevens
Rob Stevens replied the code: Two Factor Authentication
Thanks Bruce
I since found the below url that appears to work
api.qrserver.com/v1/create-qr-code

And was able to just replace the google api with it. ie

ls_chart_url = 'api.qrserver.com/v1/create-qr-code/?size=' + String ( width ) + 'x' + String ( height ) + '&data=' + ls_provision_url

We may use this as a quick interim solution until we look at integrating your QR dll.

Kind regards
Rob

Please Log in or Create an account to join the conversation.

Bruce Armstrong
CODE AUTHOR
Posts: 58
 1 year 4 months ago #528 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication
Yes, it should be that simple. There's nothing magic about a TOTP url (except perhaps the otpauth://totp/ prefix). It's just a text string that can be encoded just like any other URL or text string.

Please Log in or Create an account to join the conversation.