Two Factor Authentication

More
4 years 11 months ago - 3 months 2 weeks ago #247 by Bruce Armstrong
Bruce Armstrong created the code: Two Factor Authentication
Sample code showing how to do two factor authentication using PowerBuilder

This message has an attachment file.
Please log in or register to see it.

Last Edit: 3 months 2 weeks ago by Bruce Armstrong. Reason: Updating code to work with PowerServer and correct timestamp structure defintion

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

More
3 years 7 months ago #303 by George Mikhailovsky
George Mikhailovsky replied the code: Two Factor Authentication
Thank you a lot Bruce,

I will try this workarounds,

George

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

More
3 years 7 months ago - 3 years 7 months ago #302 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication
Read the comments by Rob Stevens on the comment thread on the blog article. There are workarounds for the CopyLongToBytes and Blob functions that don't work the same in web PowerServer.

community.appeon.com/index.php/articles-...uilder#comment-403,0
Last Edit: 3 years 7 months ago by Bruce Armstrong.

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

More
3 years 7 months ago #301 by George Mikhailovsky
George Mikhailovsky replied the code: Two Factor Authentication
Dear Bruce,

Thank you for your great job! I used your twofactorauth.pbl and its objects work without any problems in C/S version of my application. However, when I deployed it as web application, your u_google_authenticator.generatepin() function began to return '000000' instead of real pin.

Is this a problem that can be fixed or your PBL cannot work in web applications?

Best regards,

George Mikhailovsky

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

More
3 years 10 months ago #292 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication

Thierry Garrigues wrote: Hi
Do you have information or code samples to integrate this example with Google's authentication APIs?
Regards


Perhaps you could post your question with additional information about what you're trying to do in the forums.

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

More
3 years 10 months ago #291 by Thierry Garrigues
Thierry Garrigues replied the code: Two Factor Authentication
Hi
Do you have information or code samples to integrate this example with Google's authentication APIs?
Regards

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

More
3 years 10 months ago #290 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication
>>Regarding two-factor authentication with Google, could you explain which Google web APIs to call to connect to a Google account?

Two factor authentication doesn't use any Google account apis. The only google api call I make at all is to a charting api to generate the QR code.

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

More
3 years 10 months ago - 3 years 10 months ago #289 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication
>>can you implement this when you want to send emails from powerbuilder using google with smtp? Thanks a lot.

This has nothing to do with Google mail. If you're looking for code to send Google email from PowerBuilder I suggest you look at this code sample which does it through .Net called from PowerBuilder ( community.appeon.com/index.php/codeexcha...56-net-importer-demo ) or the PBNISMTP utility, which does it through PBNI ( github.com/bruce-armstrong/pbnismtp )
Last Edit: 3 years 10 months ago by Bruce Armstrong.

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

More
3 years 10 months ago #288 by Thierry Garrigues
Thierry Garrigues replied the code: Two Factor Authentication
Hi Bruce.
Regarding two-factor authentication with Google, could you explain which Google web APIs to call to connect to a Google account?
Thank you
Regards

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

More
3 years 10 months ago #287 by Guillermo Rolando
Guillermo Rolando replied the code: Two Factor Authentication
Hi,
can you implement this when you want to send emails from powerbuilder using google with smtp? Thanks a lot.

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

More
4 years 7 months ago #264 by Bruce Armstrong
Bruce Armstrong replied the code: Two Factor Authentication
>>I have it setup as a local external function
>>subroutine DoDragDrop ( string Files ) library "dragdropdemo.dll"

That's not how you use a .Net assembly from PowerBuilder. Please review the original article, because it indicates how you need to do it.

Better yet, just wait for 2019 R2. An enhancement in that version will allow you to consume a .Net assembly without having to do the plumbing required through the technique I provided in that article.

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

Moderators: Appeon Administrator