Login with Google V2

aia
oauth
login
extension
google

#1

Hi there :wave:
Here is the new version of my Login with Google method

The other one is not working as Google blocks WebViewer since months ago


#Setup

Setup instructions can be found in original topic


#How to manage data

Probably the most wanted and difficult feature

To get user’s data, first you need to authenticate them

  1. For that, use a WebViewer that uses EWV extension to enale OAuth or a WVD extension
  2. After enabling it, make the WebView to go to this URL: https://scripts.thunkable.ga/google/oauth/
    It will create a Google OAuth page
  3. Use a Clock to detect when the CurrentPageTitle goes to Logged in; because when you get that it’s because you have full access to user’s data
  4. Now, to get user’s data, just make a WebView to go to this URL: https://scripts.thunkable.ga/google/oauth/?data=sth
    Change the sth to what you want. The avaliable params can be found in the list of the app
  5. And get the CurrentPageTitle to get that info

To logout users, just go to https://scripts.thunkable.ga/google/oauth/?logout

Of course, if you are using your own web server, use your URL instead of mine


You can also take a look to the app code to see how I’m managing data

If you are planning to use this for loging or signing users you will probably need the email


#Files


#Screenshots


If you have any question or doubt, just ask :wink:


Start section with facebook or google
Login with Google - Thunkable/AppInventor
Get users avatar by email
#2

Unable download or test it because your website suspended.

Can you upload them to other location like google drive or dropbox


#3

The website will be online again in 15 hours

I can’t download it too, but when it becames online again I will re-upload the files to GoogleDrive


#4

Unable download file

https://scripts.thunkable.ga/google/oauth/oauth.zip

Error 404


#5

I found one.Is it true file?

barreeeiroo.ga/es/appinventor/googleauth/googleauth.zip


#6

Nope, that’s the old one

Now I’m on a trip
When I get home I will upload the correct one to GDrive


#7

Here it is:
https://drive.google.com/file/d/0B_-a6i4oQMHfTWJyaUpWQjhlZFU/view?usp=sharing

I will update the link on the first post too


#8

Thanks succesfuly work

Can i get mutliple information about user with one request
I try name&email but its not work


#9

Use two WebComponents, save the first output in a variable and then join it with the second response


#10

I found easy way to get all data

Just used userinfo.profile scope


#11

Ehem… :sweat_smile:

It’s because you are setting a parameter that it’s not defined
If you set an unknow param it returns all information

Try these examples to test it:
https://scripts.thunkable.ga/google/oauth/?data=
https://scripts.thunkable.ga/google/oauth/?data=lol
https://scripts.thunkable.ga/google/oauth/?data=userinfo.profile


#12

Hahaha :slight_smile:

Do you know how can i copy informations to variable.I m unable find it


#13

What do you mean?


#14

I want store users informations on list.And store list using tinydb or other storage companents

Webview show user informations but i cant find way copy it to variable or list


[Free] Extended Web Viewer Extension
#15

The WebView.Title block gives you the output
Just join it with a variable or whatever


#16

Did you test it with no parameter(userinfo.profile),Its work for id,email or other parameters but not work for my method


#17

I hadn’t thought about how to handle it…
I just added that function thinking about using it visually :sweat_smile:

I will add it to the WebView.Title tomorrow too so


#18

Okey waiting for it.If you can send changed file its better for me because already uploaded files and ı dont want reupload same files (its takes more time)


#19

I can’t do it now, I’m a bit busy

I will do it in 16 hours more or less


#20

Any news?