Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi,
I need gmail login in my asp.net website and as soon as user logged in i need to get the user details to my database.
 
Can you get the details like Gender,City, Phone Number, PostalCode, HomeAddress etc.?
 

 

 
Thanks......
Posted 6-Aug-12 21:32pm
Comments
Wes Aday at 7-Aug-12 9:44am
   
I certainly hope that this is not possible.
Marco Alessandro Bertschi at 11-Jan-13 11:02am
   
Why not? If it is only possible after the user is logged in there is no problem (Except there is the possibilty to do so without an encrypted connection - this would suck badly as hell).
Wes Aday at 13-Jan-13 7:27am
   
You are joking right? Do you seriously think that it's a good idea for anyone that can put a website up on the internet can just query google and then have access to your personal private information, save it to a database, and use it however they want? Not only they have your information but everyone that hacks into their database has that information too.
Marco Alessandro Bertschi at 14-Jan-13 4:02am
   
No I am not joking.
I am not talking about "Querying the whole Google database about every registered Google user". Off course Google has to ask the user for his permission before granting any dev access to such personal information (I forgot to mention this in my previous comment because I thought this is obvious).
But if the user gives the permission to Google for the page letting access
there is no problem in my point of view...
Wes Aday at 14-Jan-13 6:03am
   
And that is exactly what this whole question is about! Did you even bother to read it? There is exactly zero legitimate reason that any website would need to have your personal information saved to their local database. Perhaps you have no problem publishing your name, address, phone number and other personal information to anyone that asks for it but I would not do that. It's called "identity theft" and is a huge problem worldwide.
Marco Alessandro Bertschi at 14-Jan-13 6:17am
   
I read it. And I do not publish my phone number or detailed personal address to Google. So I don't have a problem to publish them to any other app because if they try to get my phone number or detailed personal address they will get a string.empty or null value instead of information.
As is said in my solution - I don't know if it is possible. But it wouldn't bother me if it is possible.
And as for third party companies there is also no legitimate and reasonable cause why Google would need to know my detailed address and phone number.
Wes Aday at 14-Jan-13 6:54am
   
Gee... exactly what I said.... so why are you yelling at me?
Marco Alessandro Bertschi at 14-Jan-13 7:37am
   
You indeed said "Do you seriously think that it's a good idea for anyone that can put a website up on the internet can just query google and then have access to your personal private information, save it to a database, and use it however they want?"
This suggests that the third party software can query the Google database for personal information !without! asking the user for his permission. What I say is: There is no problem !As long as! the third party software needs the users permission.
And if it seems like I am yelling at you: I am not and I feel sorry. But I just wanted to clarify my opinion about this theme.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I don't know if you can do so - But you might want to have a look at the GMAIL APIs[^] which are offered by Google.
 
[Edit]
As others already have suggested - You can! Use the OAuth API[^]. Credit for this edit goes to Ranjan.D[^]
[/Edit]
 
cheers
Marco Alessandro Bertschi
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I'm sure there's a solution by using Google OAuth, Please refer Get user info via Google API[^].
 
Thanks.
 

[Edit member="Tadit"]
Link text added to reflect the resource title.
[/Edit]
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 230
2 DamithSL 200
3 Zoltán Zörgő 149
4 BillWoodruff 120
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 26 Sep 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100