I want to authenticate a user using Google account. I had developed oauth using some libraries.
But it is giving me a message like some website is asking permission to access google docs/calendar/etc.,.
When we are logging into stackoverflow.com it is asking stackoverflow.com is accessing you#gmail.com. How can i get a permission for email address.
Update: I developed oauth using Zend PHP library.
And see the screenshots
stackexchange.com
My application screenshot
Thank You
At the moment, I'm working on example ZF 1.11 application that uses OpenID and openid-selector. The ZF application, called zfopenid, can be downloaded from here (it contains full ZF library and it should work out of the box):
Authentication with google, yahoo works (at least for me) at this stage. To make it work I needed to make some changes in Zend_OpenId_Consumer described at http://framework.zend.com/issues/browse/ZF-6905 + some additional changes. Also I incorporated My_OpenId_Extension_AttributeExchange (i.e. AttributeExchange implementation by Chris Bisnett) to fetch email from google, yahoo (at the moment it is not displayed, but it should be in $_GET variable returned from google, yahoo, aol or myopenid to user/login).
So, if you or anyone would like to test it, I would be grateful as I'm planning to eventually write a blog post about this. Any feedback would be very helpful at this stage. Specifically, whether it really works, or it just works for me (I'm running it on localhost using XAMPP for Linux 1.7.3a and Linux Mint 10).
I did some experiment with ZF to create OPEN ID login form , but i case of google , i was able to sign in but i wasn't able to ask google for the user info
because google is implementing openid extension called AX as i remember , while ZF implement only SREG , you can find it in library/Zend/OpenId/Extension
here is my demo example http://zc.dagho.com/index/login , its working very nice with google and others but it can't ask for users info
and you can take alook to : How to get OpenID user Profile info?
Google implements AX as well as Yahoo
(you have to request permission from
yahoo). Unfortunately Zend Framework
OpenID only supports SREG at the time
of this writing but I've written an
extension for AX support here as well
ak33m.com/?p=71 – Akeem Oct 29 '09 at
2:27
http://framework.zend.com/issues/browse/ZF-6905
update : this might be good , i didn't test it :
http://framework.zend.com/issues/browse/ZF-7328
I believe Stackoverflow uses the http://www.dotnetopenauth.net/ library.
https://meta.stackexchange.com/questions/56109/stack-overflow-and-dotnetopenauth
you can authenticate users using google open id as in stackoverflow login.
Related
I am implemented In App Billing for android.I wanted to implement subscription validity checking through my backend server. As Google Play Documentation, for making call for Google Play API,need authentication using oauth 2.0.
I followed instructions for registering project and creating credentials. But from there I have no idea how to use those credentials, I tried authentication via CURL request, but it asking permission as shown in follwing image
This permissions works fine I can exchange code and get access token, but all this done by manually, how should I implement this on backend.
I even try to use google api php library provided by Google, but It adds confusion. Also they didn't provide any example, how to use library.
Can anybody elaborate how exactly use library or pure php?
Thanks in advance.
To perform LVL and/or IAB validation on a server, do not access Google servers directly from the server. Even if all information were available, you would face integrity problems, because your app and your server will see different information due to synchronization latencies.
Instead, use your app as a proxy and validate the Google Play information on your server as described here.
I have a PHP application that will be accessed by users who are already
signed into Google ( the app runs in an iFrame on a Google Site that
requires Google login)
What is the best SSO approach that uses Google login, so users have
the same identity in both places?
Best to use a some OpenID opensource? .. zend/cake/symf plugin?
GoogleApps infrastructure? .. or a identity service like Janrain?
Is it too early to go with OpenID Connect? etc.
Thanks much.
OpenID works well - and indeed, is good enough for StackOverflow - you probably used it to register your account here.
There's an article called Getting Started with OpenID. Although it's on Zend's website, it doesn't seem to be tied to the Zend framework, so is a good starting point. It covers all the modules you need to download, and includes an example to help get you started.
Also take a look on simplesamlphp and its integration with Google:
Setting up a simpleSAMLphp SAML 2.0 IdP to use with Google Apps
Is an open source project based on php. Nice comunity and complete documentation.
Hi again I recently discovered this interesting project HybridAuth, an SSO PHP Library for authentication through identity providers like Facebook, Twitter, Google, Yahoo, LinkedIn, MySpace, Windows Live, Tumblr, Identica, LastFM, OpenID, PayPal, Vimeo, Foursquare, AOL, Viadeo, and others.
I didnt test it but seems also a good solution.
I am using Open ID on my website using Dope Openid library but I would like to add facebook as an open id provider to the list since facebook also supports OpenID...Can anyone help me out with an explanation or link me to a tutorial (staga.net is using it flawlessly on their site)
*if someone can also explain to me how Staga is using buttons instead of a text box(even SO uses a text box) to have an open ID support...Thanks
check out rpxnow
I'm not sure if I'm mistaking, but I don't believe facebook as of yet offers itself as an openId provider, but rather a consumer. That is you can log on to facebook using your gmail account, but you can't log on to stackoverflow by using your facebook account.
Last time I checked, I found facebook's implementation of an openId sign on to miss the point. To logon to the service using OpenID, go to Account Settings > Linked Accounts, pick an OpenID provider. However, facebook requires that your provider remembers that setting. If you don't have google set to remember facebook as an OpenID site, you won't be able to log on. Which to me is a bit ridiculous, but oh well...
Facebook is not an OpenID provider. If you want people to authenticate via Facebook, you'll need to implement their Facebook Connect API.
http://developers.facebook.com/connect.php
I absolutely love StackOverflow's usage of OpenID for registration. How would I go about adding this to my site? It is PHP based. I went to openid.net and looked at the libraries there, but could find little in the way of documentation or examples.
This tutorial was helpful for a previous project I worked on using PHP and OpenID. It has an example app.
http://devzone.zend.com/article/3581
(source: zend.com)
Documentation and examples.
OpenID is great, but have one big disadvantage. Let's imagine that I'm having Google account and Yahoo account. I will login using Google and then I will try to login using Yahoo. And it will be different accounts; it's really difficult to remember what openID provider I was using for registration... So, be careful with OpenID on entertainment websites, but it is still ok for developers websites.
Check OpenId class from Zend Framework.
I'm building a website that will require user registration and logon.
I would like to use the facebook connect to let people create a basic account and to log on without having to create a local account themselves - and let them fill in more profile details when they want to.
What other 3rd party authorizations systems are there? Clearly openid is one option. And google seem to have a system too for loging onto other sites with your google logon. Are there any other systems? Does microsoft have one for msn logons? I found some hints but was unable to find any details.
Anyway, the programming question is are there any php libraries that will do this for me across a range of providers? I see ones for facebook and OpenID but I've not seen any library in php that abstracts away the differences? Before I program my own solution are there any libraries for this that I've not managed to find?
Keep in mind that Facebook is likely to become an openid provider in the near future (for some value of near).
If you really want EVERYTHING abstracted for you, JanRain takes care of exactly that task for you as a hosted service. The free version provides enough functionality to get started, and then if your app takes off, you can pay a bit for more functionality down the road.