Welcome! Log In Create A New Profile

Advanced

OAuth 2.0 authentication and Google Authenticator

Posted by jonlau 
OAuth 2.0 authentication and Google Authenticator
October 12, 2018 05:03AM
Hi,

Anybody experience with windev/webdev OAuth 2.0 authentication and Google Authenticator ?

Any issue in getting it to work ?

Regards,

Jon Lau
pao
Re: OAuth 2.0 authentication and Google Authenticator
October 12, 2018 10:42AM
I have done it in WB18 (using the openid way for google/facebook/microsoft) and it works whithout problems.
I'm not a great fan of this because google/facebook/microsoft can change this at any time but it was one of the requirements of the project.

It looks like it will work out of the box with the V24 (novelty 084)

Regards

Paulo Oliveira



Edited 2 time(s). Last edit at 10/12/2018 01:01PM by pao.
uploading nightly backup file to gdrive
Re: OAuth 2.0 authentication and Google Authenticator
October 12, 2018 01:48PM
ccc2 Wrote:
-------------------------------------------------------
> uploading nightly backup file to gdrive

I wanted to code exactly that for myself... You wouldn't happen to have some code you could share at that level?

In fact, we could make it a shared project.... I wanted to code an automatic backup for the projects, with encryption before upload; and selection of what google drive to use for each project/backup...

That's a project that all of us developers could use...

Any interest?

Best regards

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
pao
Re: OAuth 2.0 authentication and Google Authenticator
October 12, 2018 04:03PM
If someone can share some code to use the google drive i'im interested.

I only used the authtentication part in one specific app, i can't share all the code (for obvious reasons) but i can share some crude code made in version 18.
Probably this is not important because of the new V24 options but if you need it just let me know.

Regards

Paulo Oliveira



Edited 1 time(s). Last edit at 10/12/2018 05:19PM by pao.
Re: OAuth 2.0 authentication and Google Authenticator
October 12, 2018 04:13PM
Hi Pao,

v24 is 1 year away...

Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.

More information on [www.fabriceharari.com]
pao
Re: OAuth 2.0 authentication and Google Authenticator
October 12, 2018 05:01PM
As i told before this is a very very crude code sample.

This window (just rename it to WDW) is from V22 but it was originally made in V18, I don't have V18 installed anymore so i just opened it in V22 to put some comments in the global declaration.

For WB it's almost the same the only diference (you already are in one browser, you don't need the activex) is in the init code of your app check if you get the code parameter in the url, if not send the user to the google login page and end your app. If you get the code parameter just proceed to the login validation (PROCEDURE VALIDA_USER_GOOGLE)

To use facebook or microsoft or any other openid provider accounts it's almost the same just search their sites for the required URLs

Regards

Paulo Oliveira



Edited 1 time(s). Last edit at 10/15/2018 05:52PM by pao.
Attachments:
open | download - login_google.jpg (11.3 KB)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: