I want to build a website that allows user sign in with Openid, especially Google account. I wanna use Google Federated Login with Hybrid protocol. I found that link:
http://code.google.com/intl/vi-VN/apis/accounts/docs/OpenID.html
But I didnt find any link to download the source code. Anybody can help me? Thank you so much.
P/S: I only can use php, plz help me with php source code :D. Thanks again.
The OpenID+OAuth hybrid protocol is just OpenID with a very simple extension on top. Get yourself a decent PHP OpenID library and find/implement the very simple OAuth extension and you're good to go.
Well, you'll also need a library to perform the OAuth signing with the access token.
Related
I am trying to create an app for Basecamp. I managed to connect and pull data using curl (Basecamp API using cURL and PHP). However this requires the users login data.
I would like to use OAuth2 with Basecamp as in https://github.com/37signals/api/blob/master/sections/authentication.md. Unfortunately there is 0 documentation on this and I couldnt find any sample code. I saw there are several OAuth2 libraries http://oauth.net/code/, but I have no idea what to do with them.
Can somebody please show me some php sample code of how I would authenticate a user using OAuth2 in php and than make a request to the Basecamp API?
Thank you very much in advance.
I recently had to implement OAuth 2.0 for our company. I was also browsing the web to try and find information on the topic. I came across these two websites, which helped alot.
OAuth 2.0 Implementation Example
Online Screencast
Hope this helps.
Even after lots of googling I could only find very basic and raw examples which are very difficult to understand. Can someone please help me in setting up OAuth server and client implementation in PHP?
Thanks in advance.
I've created a simple class in PHP for Google oAuth available here
I've also implemented other Facebook and Microsoft oAuth on other projects and they are similar but don't work exactly the same way. The differences I remember are:
Some require requests to be send by POST others by GET
Facebook doesn't send all replies in JSON format
You can read my small tutorial here, the site itself uses that class and oAuth login :)
I want to integrate Gmail (googleApps) into my application. I have created a PHP Imap library which will give me my required emails it is very slow and takes a lot of time during execution. I heard that Gmail (googleApps) is beginning to provide an interface that we can directly show in our web page. If we have something like this by using any third party API or google API please help me.
Thanks in advance.
I will give you a short answer. You don't have a detailed question you want someone to help you find something? Then maybe this is what you are looking for:
Google for
walsh gmail-php-imap
Hey all,
I'm redesigning the infrastructure for a website, and I want to make the login system use the accounts on our Google Apps. How would I be able to do something like this? I'm using PHP for the backend.
Thanks for any help.
-Trey
OAuth is one way, but it might be easier to implement OpenID, which is already provided by Google Apps. See Google Apps domain as OpenID provider
Take a look at the Google Login PHP class. It is no longer under active development and there is no support provided for it, but it should give you something to work off of. Also be sure to look Google Federated Login as a reference.
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.