简体   繁体   中英

To Check Google's username and password

I have an application where i need to check whether the username and password given as input is google's username and password , then show him some custom settings based on that.

I could not check on the internet as in my office, the Gmail keyword is blocked and when I navigate to other sites, they are blocked because of blocked keywords.

Can anyone guide me? Either PHP or Java is acceptable.

Updated Info

http://www.sourcebits.com/geemail/
Just check the AIR Application, they have developed. i was thinking something like this.

"Oh hello, if you only give me your username and password to google's services, and also your SSN, and CC number and PIN, and your birth date, name and address; I need it all but I won't misuse it, honest."

That's what I hear when someone asks me for my name and password, for an e-mail service no less: what do most password-recovery systems use? Oh, right, your e-mail. The access to which you've just shared with an anonymous stranger. On the Internet. But hey, Facebook also asks for the right to ruffle through your e-mails, and they wouldn't be evil, so no problem, right?

Also, your app now needs to store username+password, as it will essentially become the user, as far as Google is concerned . I trust Google not to leak my name and pass; OTOH I absolutely do not trust you not to leak those (either intentionally, or through an outside hack, or an inside disgruntled employee). I do remember a related question about a similar service logging in as you .

@Pekka is right, if you're trying to use the user's access to Google, you should do this using Google's OpenID endpoint , as it's explicitly made for that situation, yet doesn't give you the control over the user's account. (I'm assuming you are not trying to phish the username and password)

you can use peruse the google documentation for this to get more information about the user, provides he/she grants permission to your site. just like how stackoverflow openid works.

http://code.google.com/apis/accounts/docs/OpenID.html

you should also check: http://code.google.com/p/openid-selector/

OpenID is a safe, faster, and easier way to log in to web sites. :D use open id ...

there is many lib in this address http://wiki.openid.net/w/page/12995176/Libraries

如果要对Google服务进行身份验证,请使用OpenID或OAuth

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM