How to authenticate a user with a Google Gmail account such as stackoverflow

I want to authenticate a user with a Google account. I developed oauth using some libraries.

But he gives me a message because some website asks permission to access google / calendar / etc., Documents .

When we sign up at stackoverflow.com, he asks stackoverflow.com to contact you@gmail.com. How can I get permission to an email address.

Update: I developed oauth using the Zend PHP library.

And see the screenshots

stackexchange.com

enter image description here

Application screenshot

enter image description here

thanks

+8
authentication php oauth zend-framework
source share
5 answers
+1
source share

I am currently working on a ZF 1.11 application that uses OpenID and an openid selector. A ZF application called zfopenid can be downloaded from here (it contains the full ZF library and it should work out of the box): enter image description here Authentication with google, yahoo works (at least for me) at this point. For it to work, I needed to make some changes to Zend_OpenId_Consumer , described in http://framework.zend.com/issues/browse/ZF-6905 + some additional changes. In addition, I turned on My_OpenId_Extension_AttributeExchange (i.e. AttributeExchange implementation of Chris Bisnett) to receive email from google, yahoo (it is not currently displayed, but it should be in the $ _GET variable returned from google, yahoo, aol or myopenid for user / login).

So, if you or someone would like to test it, I would be grateful, because I plan to write a blog post about it in the end. Any feedback would be very helpful at this stage. In particular, does this really work, or just works for me (I am running it on localhost using XAMPP for Linux 1.7.3a and Linux Mint 10).

+4
source share

I did some experiment with ZF to create an OPEN ID login form, but in the case of google I was able to login, but I was not able to ask Google for user information

since Google implements an openid extension called AX , as I recall, while ZF only implements SREG , you can find it in library/Zend/OpenId/Extension

here is my demo http://zc.dagho.com/index/login , its work is very good with Google and others, but it cannot request user information

and you can take alook: How do I get OpenID user profile information?

Google implements AX as well as Yahoo (you must request permission from Yahoo). Unfortunately, the Zend Framework OpenID only supports SREG of this letter, but I wrote the extension for AX support here ak33m.com/?p=71 - Akeem Oct 29 '09 at 2:27

http://framework.zend.com/issues/browse/ZF-6905

update: this may be good, I have not tested it: http://framework.zend.com/issues/browse/ZF-7328

+2
source share
0
source share

You can authenticate users using the Google Open ID, as when logging in to stackoverflow.

-one
source share

All Articles