How to authenticate with Google Accoutnt ?

54 views
Skip to first unread message

YinYanSI

unread,
Oct 16, 2012, 2:09:15 AM10/16/12
to google-we...@googlegroups.com
 
How can we create user authentication with goolge accout with mgwt or gwt-phonegap ? I would like to use purge java api not phonegap javascript api.
I would like to create activity with username and password to login user with google accout
that user already has.

I woruld also get user info email phone number ... from user google account.

Which api librarys should I use? Do anybody have any tutorial link for this?

Tomek Kańka

unread,
Oct 16, 2012, 10:01:06 AM10/16/12
to google-we...@googlegroups.com

YinYanSI

unread,
Oct 17, 2012, 3:29:57 AM10/17/12
to google-we...@googlegroups.com
OK thanx for this link. I create gwt app copy/paste this code . compile gwt app. App works OK.

BUT I have some problem with "Client ID Settings". I have mgwt/gwt-phonegap Project.
My finnaly app is android app. or iphone app.  

What should be my "Application type"  -> "Web application"(Accessed by web browsers over a network.) or "Installed aplicatiino"(Runs on a desktop computer or handheld device (like Android or iPhone))

What sould be my "Your site or hostname" ? If I understand it should not be http://localhost or http://127.0.0.1 or my internal ip 192.168.1.10 or similar? 
Must "Your site or hostname" be my external IP for exmaple http://[my external ip]:8080/  (must I specify also port if my 8080 if my server is on 8080 port) ?

Can you give me some example how to register app? 
Reply all
Reply to author
Forward
0 new messages